diff --git a/frontend/src/components/nlp/components/NlpValueForm.tsx b/frontend/src/components/nlp/components/NlpValueForm.tsx index a2094294..a20af55f 100644 --- a/frontend/src/components/nlp/components/NlpValueForm.tsx +++ b/frontend/src/components/nlp/components/NlpValueForm.tsx @@ -66,7 +66,13 @@ export const NlpValueForm: FC> = ({ toast.success(t("message.success_save")); }, }); - const { reset, register, handleSubmit, control } = useForm< + const { + reset, + register, + handleSubmit, + control, + formState: { errors }, + } = useForm< INlpValueAttributes & { expressions: string[]; } @@ -111,8 +117,10 @@ export const NlpValueForm: FC> = ({ diff --git a/frontend/src/components/nlp/components/NlpValueFormDialog.tsx b/frontend/src/components/nlp/components/NlpValueFormDialog.tsx index dbc8c75e..491db2e2 100644 --- a/frontend/src/components/nlp/components/NlpValueFormDialog.tsx +++ b/frontend/src/components/nlp/components/NlpValueFormDialog.tsx @@ -18,6 +18,7 @@ export const NlpValueFormDialog = < ) => ( Form={NlpValueForm} + rowKey="defaultValues" addText="title.new_nlp_entity_value" editText="title.edit_nlp_value" {...props}