From 92be4a3e3b807ac466418ac443066b06a2a436d5 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Mon, 26 May 2025 17:19:51 +0100 Subject: [PATCH] fix(frontend): persist search param translation --- frontend/src/components/translations/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/translations/index.tsx b/frontend/src/components/translations/index.tsx index f2a47053..25c1738b 100644 --- a/frontend/src/components/translations/index.tsx +++ b/frontend/src/components/translations/index.tsx @@ -44,8 +44,9 @@ export const Translations = () => { hasCount: false, }, ); - const { onSearch, searchPayload } = useSearch({ + const { ref, onSearch, searchPayload } = useSearch({ $iLike: ["str"], + queryParam: { key: "search", defaultValue: "" }, }); const { dataGridProps, refetch: refreshTranslations } = useFind( { entity: EntityType.TRANSLATION }, @@ -152,7 +153,7 @@ export const Translations = () => { width="max-content" > - +