From a404cfa10e6d787c5ed472a19234a70eb88bd863 Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Fri, 4 Apr 2025 11:42:42 +0100 Subject: [PATCH] fix: typecheck --- frontend/src/components/nlp/components/NlpValue.tsx | 4 ++-- frontend/src/components/nlp/components/NlpValueForm.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/nlp/components/NlpValue.tsx b/frontend/src/components/nlp/components/NlpValue.tsx index bed19eff..22d8daa2 100644 --- a/frontend/src/components/nlp/components/NlpValue.tsx +++ b/frontend/src/components/nlp/components/NlpValue.tsx @@ -53,7 +53,7 @@ export const NlpValues = ({ entityId }: { entityId: string }) => { }); const { onSearch, searchPayload } = useSearch({ $eq: [{ entity: entityId }], - $or: ["doc", "value"] + $or: ["doc", "value"], }); const { dataGridProps } = useFind( { entity: EntityType.NLP_VALUE }, @@ -104,7 +104,7 @@ export const NlpValues = ({ entityId }: { entityId: string }) => { ], t("label.operations"), ); - const synonymsColumn = { + const synonymsColumn = { flex: 3, field: "synonyms", headerName: t("label.synonyms"), diff --git a/frontend/src/components/nlp/components/NlpValueForm.tsx b/frontend/src/components/nlp/components/NlpValueForm.tsx index b23e1849..a2094294 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 type NlpValueFormProps = { defaultValues?: INlpValue; - presetValues: INlpEntity; + presetValues: INlpEntity | undefined; }; export const NlpValueForm: FC> = ({ data: props,