Skip to content

Commit

Permalink
refactor: improved note tab selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Feb 26, 2024
1 parent 586f901 commit 8500fc4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/renderer/stores/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8500fc4

Please sign in to comment.