fix: apply feedback

This commit is contained in:
abdou6666
2025-04-04 11:34:59 +01:00
parent ec81062b9d
commit 7f61a3f5fc

View File

@@ -44,7 +44,7 @@ export const NlpValueForm: FC<ComponentFormProps<NlpValueFormProps>> = ({
entity: EntityType.NLP_ENTITY,
format: Format.FULL,
});
const canHaveSynonyms = nlpEntity?.lookups?.[0] === NlpLookups.keywords;
const canHaveSynonyms = nlpEntity?.lookups.includes(NlpLookups.keywords);
const { mutate: createNlpValue } = useCreate(EntityType.NLP_VALUE, {
onError: () => {
rest.onError?.();