From 8ed5188d0d047c61cc4c1b40e2f670f9d98378b5 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Mon, 26 May 2025 17:23:50 +0100 Subject: [PATCH] fix(frontend): persist search param nlpValue --- frontend/src/components/nlp/components/NlpValue.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/nlp/components/NlpValue.tsx b/frontend/src/components/nlp/components/NlpValue.tsx index aac1c9a3..ef6f067b 100644 --- a/frontend/src/components/nlp/components/NlpValue.tsx +++ b/frontend/src/components/nlp/components/NlpValue.tsx @@ -51,9 +51,10 @@ export const NlpValues = ({ entityId }: { entityId: string }) => { entity: EntityType.NLP_ENTITY, format: Format.FULL, }); - const { onSearch, searchPayload } = useSearch({ + const { ref, onSearch, searchPayload } = useSearch({ $eq: [{ entity: entityId }], $or: ["doc", "value"], + queryParam: { key: "search", defaultValue: "" }, }); const { dataGridProps } = useFind( { entity: EntityType.NLP_VALUE, format: Format.FULL }, @@ -228,7 +229,7 @@ export const NlpValues = ({ entityId }: { entityId: string }) => { sx={{ width: "max-content", gap: 1 }} > - + {hasPermission(