forked from MapComplete/MapComplete
Remove empty social images
This commit is contained in:
parent
55f9ee605f
commit
2e586cedc4
29 changed files with 5 additions and 28 deletions
|
@ -126,6 +126,11 @@ class UpdateLegacyTheme extends DesugaringStep<LayoutConfigJson> {
|
|||
|
||||
convert(json: LayoutConfigJson, context: string): { result: LayoutConfigJson; errors: string[]; warnings: string[] } {
|
||||
const oldThemeConfig = {...json}
|
||||
|
||||
if(oldThemeConfig.socialImage === ""){
|
||||
delete oldThemeConfig.socialImage
|
||||
}
|
||||
|
||||
if (oldThemeConfig["roamingRenderings"] !== undefined) {
|
||||
|
||||
if (oldThemeConfig["roamingRenderings"].length == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue