fix: set fallback value for searchKey in url search params

This commit is contained in:
ValdiANS
2026-04-21 13:20:49 +07:00
parent 2391d6ceeb
commit d2a5229282
+1 -1
View File
@@ -523,7 +523,7 @@ const useSelect = <T,>(
const qs = new URLSearchParams({
...(params ?? {}),
[searchKey]: inputValue ?? '',
[searchKey ? searchKey : 'search']: inputValue ?? '',
[pageKey]: String(pageIndex + 1),
[limitKey]: String(limit),
}).toString();