diff --git a/src/lib/components/layout/Sidebar/UserMenu.svelte b/src/lib/components/layout/Sidebar/UserMenu.svelte index d4b45d0d51..b8a8d1b253 100644 --- a/src/lib/components/layout/Sidebar/UserMenu.svelte +++ b/src/lib/components/layout/Sidebar/UserMenu.svelte @@ -264,7 +264,7 @@ {#if shiftKey} @@ -273,7 +273,7 @@ class="p-1 mr-1 rounded-lg hover:bg-gray-100/60 dark:hover:bg-gray-700/60 transition" on:click|preventDefault|stopPropagation={() => togglePin('workspace')} > - {#if isPinned('workspace')} + {#if pinnedItems.includes('workspace')} {:else} @@ -310,7 +310,7 @@ {#if shiftKey} @@ -319,7 +319,7 @@ class="p-1 mr-1 rounded-lg hover:bg-gray-100/60 dark:hover:bg-gray-700/60 transition" on:click|preventDefault|stopPropagation={() => togglePin('notes')} > - {#if isPinned('notes')} + {#if pinnedItems.includes('notes')} {:else} @@ -356,7 +356,7 @@ {#if shiftKey} @@ -365,7 +365,7 @@ class="p-1 mr-1 rounded-lg hover:bg-gray-100/60 dark:hover:bg-gray-700/60 transition" on:click|preventDefault|stopPropagation={() => togglePin('calendar')} > - {#if isPinned('calendar')} + {#if pinnedItems.includes('calendar')} {:else} @@ -402,7 +402,7 @@ {#if shiftKey} @@ -411,7 +411,7 @@ class="p-1 mr-1 rounded-lg hover:bg-gray-100/60 dark:hover:bg-gray-700/60 transition" on:click|preventDefault|stopPropagation={() => togglePin('automations')} > - {#if isPinned('automations')} + {#if pinnedItems.includes('automations')} {:else} @@ -448,7 +448,7 @@ {#if shiftKey} @@ -457,7 +457,7 @@ class="p-1 mr-1 rounded-lg hover:bg-gray-100/60 dark:hover:bg-gray-700/60 transition" on:click|preventDefault|stopPropagation={() => togglePin('playground')} > - {#if isPinned('playground')} + {#if pinnedItems.includes('playground')} {:else}