Skip to content

Commit 732c9e1

Browse files
authored
Merge pull request #110 from connorabbas/develop
composable fix
2 parents 9815669 + ad6ee6a commit 732c9e1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

resources/js/Composables/usePaginatedData.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,14 @@ export function usePaginatedData(
110110
function reset() {
111111
window.history.replaceState(null, '', window.location.pathname);
112112
filters.value = defaultFilters;
113-
sorting.value.field = '';
114-
sorting.value.order = 1;
115-
pagination.value.page = 1;
113+
sorting.value = {
114+
field: '',
115+
order: 1,
116+
};
117+
pagination.value = {
118+
page: 1,
119+
rows: initialsRows,
120+
};
116121
router.reload({
117122
only: ['request', ...new Set(only)],
118123
});

0 commit comments

Comments
 (0)