Skip to content

Commit

Permalink
fixes trailing white space in widget data field breaks the output (To…
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitnath authored Oct 27, 2022
1 parent e210b85 commit 426f3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/Editor/CodeBuilder/CodeHinter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export function CodeHinter({
height={'100%'}
onFocus={() => setFocused(true)}
onBlur={(editor) => {
const value = editor.getValue();
const value = editor.getValue()?.trimEnd();
onChange(value);
if (!isPreviewFocused.current) {
setFocused(false);
Expand Down

0 comments on commit 426f3f0

Please sign in to comment.