We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 238388d commit 8b362a0Copy full SHA for 8b362a0
1 file changed
src/renderer/App.vue
@@ -141,11 +141,11 @@ watch(
141
watch(
142
() => [snippetStore.selectedId, snippetStore.fragment],
143
() => {
144
- if (
145
- snippetStore.selected?.content[snippetStore.fragment].language !==
146
- 'markdown'
147
- ) {
+ const lang = snippetStore.selected?.content[snippetStore.fragment]?.language
+
+ if (lang && lang !== 'markdown') {
148
snippetStore.isMarkdownPreview = false
+ snippetStore.isMindmapPreview = false
149
}
150
151
)
0 commit comments