Skip to content

Commit 7621717

Browse files
authored
Merge pull request #3944 from AymanAlSuleihi/master
Fix datagrid dropping query params on pagination
2 parents c99ab31 + bd7b794 commit 7621717

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/common/DataGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function DataGrid({
8686
(page: number) => {
8787
router.push(updateParams({ search, page }));
8888
},
89-
[search, updateParams],
89+
[router, updateParams, search],
9090
);
9191

9292
const child = data ? (typeof children === 'function' ? children(data) : children) : null;

0 commit comments

Comments
 (0)