Fix persistence of sub navigation

This commit is contained in:
ernstmul
2025-02-03 14:40:35 +01:00
parent fd9d3598c4
commit 64a1cb2d1a
+1 -1
View File
@@ -72,7 +72,7 @@
let sideBarIsOpen = false;
let showAccountMenu = false;
let subNavigation: undefined | ComponentType = undefined;
let subNavigation: undefined | ComponentType = $page.data.subNavigation;
let state: undefined | 'open' | 'closed' | 'icons' = 'closed';
$: state = sideBarIsOpen ? 'open' : 'closed';
$: state = subNavigation && !$isSmallViewport ? 'icons' : sideBarIsOpen ? 'open' : 'closed';