diff --git a/src/Models/ThemeConfig/LayerConfig.ts b/src/Models/ThemeConfig/LayerConfig.ts index 5ad4babfa..c4a1e4d58 100644 --- a/src/Models/ThemeConfig/LayerConfig.ts +++ b/src/Models/ThemeConfig/LayerConfig.ts @@ -313,7 +313,7 @@ export default class LayerConfig extends WithContextLoader { ) } this.units = (json.units ?? []).flatMap((unitJson, i) => - UnitUtils.fromJson()(unitJson, this.tagRenderings, `${context}.unit[${i}]`) + UnitUtils.fromJson(unitJson, this.tagRenderings, `${context}.unit[${i}]`) ) { let filter = json.filter