Skip to content

Commit f6b0d76

Browse files
committed
fix(snippets): get all snippets after patch
1 parent a860e2b commit f6b0d76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/renderer/store/snippets.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export const useSnippetStore = defineStore('snippets', {
7878
if (snippet.name !== data.value.name) {
7979
snippet.name = data.value.name
8080
}
81+
82+
await this.getSnippets()
8183
},
8284
async patchCurrentSnippetContentByKey (
8385
key: keyof SnippetContent,

0 commit comments

Comments
 (0)