From e281dc782415c8165afeddabaecf76f6071e9c53 Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Tue, 4 Mar 2025 13:01:39 +0100 Subject: [PATCH] feat: display synonyms inputs --- .../nlp/components/NlpValueForm.tsx | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/nlp/components/NlpValueForm.tsx b/frontend/src/components/nlp/components/NlpValueForm.tsx index e9e154be..72eb2fd2 100644 --- a/frontend/src/components/nlp/components/NlpValueForm.tsx +++ b/frontend/src/components/nlp/components/NlpValueForm.tsx @@ -25,7 +25,7 @@ import { INlpValue, INlpValueAttributes } from "@/types/nlp-value.types"; export const NlpValueForm: FC< ComponentFormProps<{ data: INlpValue; canHaveSynonyms: boolean }> > = ({ data: props, Wrapper = Fragment, WrapperProps, ...rest }) => { - const { data, canHaveSynonyms } = props || {}; + const { data } = props || {}; const { t } = useTranslate(); const { toast } = useToast(); const { query } = useRouter(); @@ -112,17 +112,15 @@ export const NlpValueForm: FC< /> - {canHaveSynonyms ? ( - - ( - - )} - /> - - ) : null} + + ( + + )} + /> +