Skip to content

Commit

Permalink
fix(snippets): delete fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Oct 12, 2023
1 parent 238388d commit 8b362a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ watch(
watch(
() => [snippetStore.selectedId, snippetStore.fragment],
() => {
if (
snippetStore.selected?.content[snippetStore.fragment].language !==
'markdown'
) {
const lang = snippetStore.selected?.content[snippetStore.fragment]?.language
if (lang && lang !== 'markdown') {
snippetStore.isMarkdownPreview = false
snippetStore.isMindmapPreview = false
}
}
)
Expand Down

0 comments on commit 8b362a0

Please sign in to comment.