fix: reset form after create

This commit is contained in:
Mohamed Marrouchi 2024-09-25 09:32:14 +01:00
parent f1dbc7a49d
commit c19569d419

View File

@ -157,6 +157,10 @@ const NlpDatasetSample: FC<NlpDatasetSampleProps> = ({
const onSubmitForm = (form: INlpSampleFormAttributes) => {
submitForm(form);
refetchEntities();
reset({
...defaultValues,
text: "",
});
};
useEffect(() => {