mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: apply feedback
This commit is contained in:
@@ -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?.();
|
||||
|
||||
Reference in New Issue
Block a user