Fix: reactive statement to let subNavigation disappear accordingly

This commit is contained in:
ernstmul
2025-02-26 10:17:35 +01:00
parent 2fd4ee4a01
commit 4a557b6645
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -109,7 +109,7 @@
};
let showAccountMenu = false;
let subNavigation: undefined | ComponentType = $page.data.subNavigation;
$: subNavigation = $page.data.subNavigation;
let state: undefined | 'open' | 'closed' | 'icons' = 'closed';
$: state = $isSidebarOpen ? 'open' : 'closed';
@@ -18,10 +18,11 @@
a.$updatedAt > b.$updatedAt ? -1 : 1
);
$: selectedCollection = sortedCollections.find((collection) => collection.$id === collectionId);
$: selectedCollection = sortedCollections?.find(
(collection) => collection.$id === collectionId
);
let openBottomSheet = false;
console.log('isTabletViewport', $isTabletViewport);
</script>
{#if !$isTabletViewport}