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;