Skip to content

Commit e7ba448

Browse files
committed
fix: error
1 parent bd97ae5 commit e7ba448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/editor/TextEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const TextEditor = () => {
8282
value={contents}
8383
options={editorOptions}
8484
onMount={handleMount}
85-
onValidate={errors => setError(errors[0]?.message)}
85+
onValidate={errors => setError(errors[0]?.message || "")}
8686
onChange={contents => setContents({ contents, skipUpdate: true })}
8787
loading={<LoadingOverlay visible />}
8888
/>

0 commit comments

Comments
 (0)