From 0599afdcb4ec92f894bc37d95d0b5c36eba6f440 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 31 Aug 2024 15:41:43 +0200 Subject: [PATCH] Update MenuState.ts --- src/Models/MenuState.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Models/MenuState.ts b/src/Models/MenuState.ts index 1c78440e7..7543f7027 100644 --- a/src/Models/MenuState.ts +++ b/src/Models/MenuState.ts @@ -22,7 +22,7 @@ export class MenuState { "usersettings", "share", "menu" ] as const - public readonly menuIsOpened = new UIEventSource(false) + public readonly menuIsOpened public readonly pageStates: Record> public readonly highlightedLayerInFilters: UIEventSource = new UIEventSource( @@ -44,7 +44,7 @@ export class MenuState { }) } this.pageStates = >>states - +this.menuOsOpened = this.pageStates.menu const visitedBefore = LocalStorageSource.GetParsed( themeid + "thememenuisopened", false )