diff --git a/src/Logic/DetermineLayout.ts b/src/Logic/DetermineLayout.ts index 33903d91e..0b0e9b9a7 100644 --- a/src/Logic/DetermineLayout.ts +++ b/src/Logic/DetermineLayout.ts @@ -139,9 +139,9 @@ export default class DetermineLayout { const layerConfig = json const iconTr: string | TagRenderingConfigJson = ( layerConfig.pointRendering - .map((mr) => mr.marker.find((icon) => icon.icon !== undefined).icon) + .map((mr) => mr?.marker?.find((icon) => icon.icon !== undefined)?.icon) .find((i) => i !== undefined) - ) + ) ?? "bug" const icon = new TagRenderingConfig(iconTr).render.txt json = { id: json.id,