Fix build

This commit is contained in:
pietervdvn 2021-10-12 19:11:48 +02:00
parent e530eba55a
commit e5a24ff499

View file

@ -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()
}