From e5a24ff499e04e874edd32b8da07359ac5f81294 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 12 Oct 2021 19:11:48 +0200 Subject: [PATCH] Fix build --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index dc738eaf4..3bfa4f28b 100644 --- a/index.ts +++ b/index.ts @@ -63,7 +63,7 @@ if (path !== "index.html" && path !== "") { defaultLayout = QueryParameters.GetQueryParameter("layout", defaultLayout, "The layout to load into MapComplete").data; let layoutToUse: LayoutConfig = AllKnownLayouts.allKnownLayouts.get(defaultLayout.toLowerCase()); -if(layoutToUse.id === "natuurpunt"){ +if(layoutToUse?.id === "natuurpunt"){ localStorage.clear() }