Skip to content

Commit

Permalink
fix: validate in code mode not always triggering
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Mar 22, 2022
1 parent 7b15255 commit 246cf67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/modes/codemode/CodeMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@
]
}
if (isNewDocument) {
if (text.length === 0) {
// new, empty document, do not try to parse
return []
}
Expand Down

0 comments on commit 246cf67

Please sign in to comment.