Skip to content

Commit 7309a85

Browse files
lucasgoralCopilot
andauthored
Update src/components/YamlEditor/YamlEditor.tsx
Co-authored-by: Copilot <[email protected]>
1 parent 27a6e75 commit 7309a85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/YamlEditor/YamlEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ export const YamlEditor = (props: YamlEditorProps) => {
4141
);
4242

4343
const handleEditorChange = useCallback(
44-
(val: string | undefined) => {
44+
(val: string | undefined, event?: monaco.editor.IModelContentChangedEvent) => {
4545
if (isEdit) {
4646
setEditorContent(val ?? '');
4747
}
48-
onChange?.(val ?? '', undefined as unknown as monaco.editor.IModelContentChangedEvent);
48+
onChange?.(val ?? '', event);
4949
},
5050
[isEdit, onChange],
5151
);

0 commit comments

Comments
 (0)