From d2a52292824e3eac6c2981b3b000c41e5849674e Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Tue, 21 Apr 2026 13:20:49 +0700 Subject: [PATCH] fix: set fallback value for searchKey in url search params --- src/components/input/SelectInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/input/SelectInput.tsx b/src/components/input/SelectInput.tsx index c1736fc5..f954bc20 100644 --- a/src/components/input/SelectInput.tsx +++ b/src/components/input/SelectInput.tsx @@ -523,7 +523,7 @@ const useSelect = ( const qs = new URLSearchParams({ ...(params ?? {}), - [searchKey]: inputValue ?? '', + [searchKey ? searchKey : 'search']: inputValue ?? '', [pageKey]: String(pageIndex + 1), [limitKey]: String(limit), }).toString();