Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit daef438

Browse files
committed
[Preview] check for empty expressions
1 parent 16d51a6 commit daef438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function updatePreview(target: HTMLElement, editor: any) {
126126
match = getExpressionFromCoords(editor.codeMirror, tokenPos);
127127
}
128128

129-
if (!match) {
129+
if (!match || !match.expression) {
130130
return;
131131
}
132132

0 commit comments

Comments
 (0)