mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
fix: reset form after create
This commit is contained in:
parent
f1dbc7a49d
commit
c19569d419
@ -157,6 +157,10 @@ const NlpDatasetSample: FC<NlpDatasetSampleProps> = ({
|
||||
const onSubmitForm = (form: INlpSampleFormAttributes) => {
|
||||
submitForm(form);
|
||||
refetchEntities();
|
||||
reset({
|
||||
...defaultValues,
|
||||
text: "",
|
||||
});
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user