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

Commit ac524ea

Browse files
committed
Fix previewing a file w/ no functions (#5629)
1 parent 423956d commit ac524ea

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
@@ -125,7 +125,7 @@ export function updatePreview(target: HTMLElement, editor: any) {
125125
const symbols = getSymbols(getState(), source.toJS());
126126

127127
let match;
128-
if (!symbols || symbols.identifiers) {
128+
if (!symbols || symbols.identifiers.length > 0) {
129129
match = findBestMatchExpression(symbols, tokenPos, tokenText);
130130
} else {
131131
match = getExpressionFromCoords(editor.codeMirror, tokenPos);

0 commit comments

Comments
 (0)