Fix datagrid dropping query params on pagination
This commit is contained in:
@@ -56,7 +56,7 @@ export function DataGrid({
|
|||||||
(page: number) => {
|
(page: number) => {
|
||||||
router.push(updateParams({ search, page }));
|
router.push(updateParams({ search, page }));
|
||||||
},
|
},
|
||||||
[search],
|
[router, updateParams, search],
|
||||||
);
|
);
|
||||||
|
|
||||||
const child = data ? (typeof children === 'function' ? children(data) : children) : null;
|
const child = data ? (typeof children === 'function' ? children(data) : children) : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user