diff --git a/mapping_workbench/frontend/src/hooks/use-items-search.js b/mapping_workbench/frontend/src/hooks/use-items-search.js index ad2b4b17..cd50ce3f 100644 --- a/mapping_workbench/frontend/src/hooks/use-items-search.js +++ b/mapping_workbench/frontend/src/hooks/use-items-search.js @@ -8,7 +8,7 @@ const useItemsSearch = (items, sectionApi, searchColumns, newFilters, sort) => { column: "", direction: "desc" }, - page: sectionApi.DEFAULT_PAGE + 1, + page: sectionApi.DEFAULT_PAGE, rowsPerPage: sectionApi.DEFAULT_ROWS_PER_PAGE }); @@ -58,7 +58,7 @@ const useItemsSearch = (items, sectionApi, searchColumns, newFilters, sort) => { } const pagedItems = sortedItems().filter((item, i) => { - const pageSize = (state.page - 1) * state.rowsPerPage + const pageSize = state.page * state.rowsPerPage if ((pageSize <= i && pageSize + state.rowsPerPage > i) || state.rowsPerPage < 0) return item }) diff --git a/mapping_workbench/frontend/src/pages/app/ontology-files/index.js b/mapping_workbench/frontend/src/pages/app/ontology-files/index.js index 73ea6a35..b3db0962 100644 --- a/mapping_workbench/frontend/src/pages/app/ontology-files/index.js +++ b/mapping_workbench/frontend/src/pages/app/ontology-files/index.js @@ -82,7 +82,7 @@ const Page = () => { spacing={{xs: 3, lg: 4}} > - + {