Skip to content

Commit

Permalink
fix(snippets): add new snippet from list header
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Apr 4, 2022
1 parent f8ded2a commit 686c982
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/components/snippets/SnippetListHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ const folderStore = useFolderStore()
const onAddNewSnippet = async () => {
if (folderStore.selectedAlias !== undefined) return
if (!folderStore.selectedId) return
await snippetStore.addNewSnippet()
await snippetStore.getSnippetsByFolderIds(folderStore.selectedIds)
await snippetStore.getSnippetsByFolderIds(folderStore.selectedIds!)
await snippetStore.getSnippets()
}
</script>
Expand Down

0 comments on commit 686c982

Please sign in to comment.