primary-violetP
Refine3y ago
25 replies
primary-violet

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
Was this page helpful?