Skip to content

Commit

Permalink
fix(snippet): set first fragment when creating a snippet (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov authored Aug 22, 2022
1 parent a8c89d8 commit d382625
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer/composable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export const onAddNewSnippet = async () => {
const folderStore = useFolderStore()
const snippetStore = useSnippetStore()

snippetStore.fragment = 0
snippetStore.isMarkdownPreview = false

await snippetStore.addNewSnippet()

if (folderStore.selectedId) {
Expand Down

0 comments on commit d382625

Please sign in to comment.