diff --git a/src/UI/BigComponents/MenuDrawer.svelte b/src/UI/BigComponents/MenuDrawer.svelte index 1cedb769b..a4cba25ff 100644 --- a/src/UI/BigComponents/MenuDrawer.svelte +++ b/src/UI/BigComponents/MenuDrawer.svelte @@ -64,9 +64,11 @@ let location = state.mapProperties.location export let onlyLink: boolean const t = Translations.t.general.menu - let shown = new UIEventSource(state.guistate.pageStates.menu.data) + let shown = new UIEventSource(state.guistate.pageStates.menu.data || !onlyLink) state.guistate.pageStates.menu.addCallback(isShown => { - console.log("Setting", isShown) + if(!onlyLink){ + return true + } if(isShown){ shown.setData(true) }else{