Skip to content

Commit 5fc053a

Browse files
committed
revert: restore original error handling logic to keep PR scope focused
Signed-off-by: Pranav-0440 <pranavghorpade61@gmail.com>
1 parent 10ebb53 commit 5fc053a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/Editor/JsonEditor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ const JsonEditor: React.FC<JsonEditorProps> = ({ editorRef }) => {
209209
validate.report.json = "failed";
210210
context.updateValidationMessage(validate);
211211
setLocalTextState(editorText);
212-
213-
delay(messageWorkers, editorText, 500);
212+
delay(messageWorkers, editorText ?? "", 500);
214213
}
215214
};
216215

0 commit comments

Comments
 (0)