Skip to content

Commit 3fe0bfc

Browse files
committed
Update YamlEditor.tsx
1 parent c54e0e5 commit 3fe0bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/YamlEditor/YamlEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const YamlEditor = (props: YamlEditorProps) => {
5959
);
6060

6161
const handleEditorChange = useCallback(
62-
(val: string | undefined, event: monaco.editor.IModelContentChangedEvent) => {
62+
(val: string | undefined, event?: monaco.editor.IModelContentChangedEvent) => {
6363
if (isEdit) {
6464
setEditorContent(val ?? '');
6565
}

0 commit comments

Comments
 (0)