mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
fix: set resetPage to false as default value in updateFilter function
This commit is contained in:
@@ -154,7 +154,7 @@ export function useTableFilter<TExtra extends Record<string, unknown>>(
|
|||||||
);
|
);
|
||||||
|
|
||||||
const updateFilter = useCallback(
|
const updateFilter = useCallback(
|
||||||
<K extends keyof TExtra>(key: K, value: TExtra[K], resetPage = true) => {
|
<K extends keyof TExtra>(key: K, value: TExtra[K], resetPage = false) => {
|
||||||
dispatch({ type: 'UPDATE_FILTER', key, value, resetPage });
|
dispatch({ type: 'UPDATE_FILTER', key, value, resetPage });
|
||||||
},
|
},
|
||||||
[dispatch]
|
[dispatch]
|
||||||
|
|||||||
Reference in New Issue
Block a user