idk why my useForm edit doesnt work
const {
modalProps: editModalProps,
formProps: editFormProps,
show: editModalShow,
} = useModalForm<IColor>({
action: "edit",
warnWhenUnsavedChanges: true,
});
<EditButton
hideText
size="small"
recordItemId={record.id}
onClick={() => editModalShow(record.id)}
/>
<EditColor modalProps={editModalProps} formProps={editFormProps} />
i checked the formValues in EditColor components by editFormProps.form.getFieldsValues but everything is undefined
modalProps: editModalProps,
formProps: editFormProps,
show: editModalShow,
} = useModalForm<IColor>({
action: "edit",
warnWhenUnsavedChanges: true,
});
<EditButton
hideText
size="small"
recordItemId={record.id}
onClick={() => editModalShow(record.id)}
/>
<EditColor modalProps={editModalProps} formProps={editFormProps} />
i checked the formValues in EditColor components by editFormProps.form.getFieldsValues but everything is undefined
