Skip to content

Commit 4ff45bf

Browse files
authored
Fix for extra whitespaces resolving to strings (ToolJet#2408)
1 parent f170cf3 commit 4ff45bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/Editor/CodeBuilder/CodeHinter.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function CodeHinter({
9696

9797
function valueChanged(editor, onChange, suggestions, ignoreBraces) {
9898
handleChange(editor, onChange, suggestions, ignoreBraces);
99-
setCurrentValue(editor.getValue());
99+
setCurrentValue(editor.getValue()?.trim());
100100
}
101101

102102
const getPreviewContent = (content, type) => {

0 commit comments

Comments
 (0)