mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
fix: set default map for pageSize to limit
This commit is contained in:
@@ -249,6 +249,9 @@ export function useTableFilter<
|
|||||||
const mapKey = useCallback(
|
const mapKey = useCallback(
|
||||||
(key: string) => {
|
(key: string) => {
|
||||||
const m = options?.paramMap as Record<string, string> | undefined;
|
const m = options?.paramMap as Record<string, string> | undefined;
|
||||||
|
|
||||||
|
if (key === 'pageSize' && ((m && !m[key]) || !m)) return 'limit';
|
||||||
|
|
||||||
return (m && m[key]) || key;
|
return (m && m[key]) || key;
|
||||||
},
|
},
|
||||||
[options?.paramMap]
|
[options?.paramMap]
|
||||||
|
|||||||
Reference in New Issue
Block a user