Skip to content

Commit 4f2a203

Browse files
committed
fix(snippets): await fetch snippets by click on system folders
1 parent 3a51e69 commit 4f2a203

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/store/snippets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,10 @@ export const useSnippetStore = defineStore('snippets', {
222222
}
223223
}
224224
},
225-
setSnippetsByAlias (alias: SystemFolderAlias) {
225+
async setSnippetsByAlias (alias: SystemFolderAlias) {
226226
const folderStore = useFolderStore()
227227

228-
this.getSnippets()
228+
await this.getSnippets()
229229

230230
let snippets: SnippetWithFolder[] = []
231231

0 commit comments

Comments
 (0)