mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 05:22:02 +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(
|
||||
(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]
|
||||
|
||||
Reference in New Issue
Block a user