From 8500fc40a1ddc0bd2353f1ee3595eba2875a6bb0 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Mon, 26 Feb 2024 18:17:15 +0100 Subject: [PATCH] refactor: improved note tab selection --- src/renderer/stores/application.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/renderer/stores/application.ts b/src/renderer/stores/application.ts index 5250aba1..14f6658f 100644 --- a/src/renderer/stores/application.ts +++ b/src/renderer/stores/application.ts @@ -55,10 +55,9 @@ export const useApplicationStore = defineStore('application', { }, showScratchpad (tag?: string) { this.isScratchpad = true; - if (tag) { - const { selectedTag } = storeToRefs(useScratchpadStore()); - selectedTag.value = tag; - } + if (!tag) tag = 'all'; + const { selectedTag } = storeToRefs(useScratchpadStore()); + selectedTag.value = tag; }, hideScratchpad () { this.isScratchpad = false;