diff --git a/index.ts b/index.ts index 1bb2a9866..9dc41de84 100644 --- a/index.ts +++ b/index.ts @@ -68,7 +68,7 @@ let layoutToUse: LayoutConfig = AllKnownLayouts.allKnownLayouts.get(defaultLayou // WOrkaround/legacy -if(layoutToUse.id === "cyclofix"){ +if(layoutToUse?.id === "cyclofix"){ QueryParameters.GetQueryParameter("layer-bike_shops", "true", "Legacy - keep De Fietsambassade working").syncWith( QueryParameters.GetQueryParameter("layer-bike_shop","true","Legacy - keep De Fietsambassade working") )