From d5ac32090e81ba83be644d3a104e19a38972feba Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Fri, 15 Nov 2024 14:10:32 -0300 Subject: [PATCH] fix: toggle sidebar Signed-off-by: Vitor Mattos --- src/store/sidebar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/sidebar.js b/src/store/sidebar.js index 394b14c29d..1bd2f49883 100644 --- a/src/store/sidebar.js +++ b/src/store/sidebar.js @@ -49,9 +49,9 @@ export const useSidebarStore = defineStore('sidebar', { setActiveTab(id) { set(this, 'activeTab', id ?? '') if (id) { - this.hideSidebar() - } else { this.showSidebar() + } else { + this.hideSidebar() } }, hideSidebar() {