Skip to content

Commit 2626b06

Browse files
committed
fixup! front: editor-slopes-fix-form-validation
1 parent 770d97a commit 2626b06

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

front/src/applications/editor/components/EditorForm.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ function EditorForm<T extends Omit<EditorEntity, 'objType'> & { objType: string
124124
}}
125125
onChange={(event) => {
126126
setFormData({ ...data.properties, ...event.formData });
127-
if (onChange) {
128-
onChange({ ...data, properties: { ...data.properties, ...event.formData } });
129-
}
127+
onChange?.({ ...data, properties: { ...data.properties, ...event.formData } });
130128
}}
131129
>
132130
{children}

0 commit comments

Comments
 (0)