Autoremoved roaming renderings if empty
This commit is contained in:
parent
5759694332
commit
1fb45ad75a
22 changed files with 23 additions and 39 deletions
|
@ -46,6 +46,11 @@ for (const themeFile of themeFiles) {
|
|||
// @ts-ignore
|
||||
fixLayerConfig(layerConfig)
|
||||
}
|
||||
|
||||
if(themeFile.parsed["roamingRenderings"] !== undefined && themeFile.parsed["roamingRenderings"].length == 0){
|
||||
delete themeFile.parsed["roamingRenderings"]
|
||||
}
|
||||
|
||||
writeFileSync(themeFile.path, JSON.stringify(themeFile.parsed, null, " "))
|
||||
}
|
||||
//*/
|
||||
//*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue