From a8d128ac26b5e6f9118a73c2fb824cb638a35354 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 6 Dec 2022 15:21:17 +0000 Subject: [PATCH] Fix side panel issue where content from multiple side panels would be shown --- packages/client/src/components/app/SidePanel.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/app/SidePanel.svelte b/packages/client/src/components/app/SidePanel.svelte index 8731c7191e..a44bd65e6b 100644 --- a/packages/client/src/components/app/SidePanel.svelte +++ b/packages/client/src/components/app/SidePanel.svelte @@ -47,7 +47,10 @@ // Apply initial visibility update(visible) - return { update } + return { + update, + destroy: () => update(false), + } } @@ -57,7 +60,7 @@ class="side-panel" class:open > - {#if $sidePanelStore.open} + {#if open} {/if}