Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix: error

AykutSarace7ba448b71d3
diff --git a/src/features/editor/TextEditor.tsx b/src/features/editor/TextEditor.tsx
index f09ac78f..53b7c830 100644
--- a/src/features/editor/TextEditor.tsx
+++ b/src/features/editor/TextEditor.tsx
@@ -82,7 +82,7 @@ const TextEditor = () => {
value={contents}
options={editorOptions}
onMount={handleMount}
- onValidate={errors => setError(errors[0]?.message)}
+ onValidate={errors => setError(errors[0]?.message || "")}
onChange={contents => setContents({ contents, skipUpdate: true })}
loading={<LoadingOverlay visible />}
/>