Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gruppler committed Dec 5, 2023
1 parent b07ffe5 commit c7cebfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
const paginationParamKeys = [
"page",
"rowsPerPage",
"rowsNumber",
];
const setStateFromParams = () => {
const newSearchData: any = {};
Expand Down Expand Up @@ -149,13 +148,14 @@
}
}
searchData.value = params;
searchGames({...pagination.value, page: 1}, params);
pushState();
searchGames({...pagination.value, page: 1}, params);
}
function setPagination() {
searchGames(pagination.value);
function setPagination(pagination: any) {
pagination.value = pagination;
pushState();
searchGames(pagination);
}
async function searchGames(paginationData: any = pagination.value, search?: any) {
Expand Down

0 comments on commit c7cebfa

Please sign in to comment.