fix: set default map for pageSize to limit

This commit is contained in:
ValdiANS
2026-05-08 18:58:25 +07:00
parent 7f9bb8e11d
commit a9a5098a21
+3
View File
@@ -249,6 +249,9 @@ export function useTableFilter<
const mapKey = useCallback(
(key: string) => {
const m = options?.paramMap as Record<string, string> | undefined;
if (key === 'pageSize' && ((m && !m[key]) || !m)) return 'limit';
return (m && m[key]) || key;
},
[options?.paramMap]