Skip to content

Commit

Permalink
Add page value from route to call
Browse files Browse the repository at this point in the history
  • Loading branch information
marySalvi committed Oct 12, 2023
1 parent 5420086 commit 3f855a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/views/FileBrowserView/FileBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,10 @@ function showDelete(item: AssetPath) {
async function getItems() {
updating.value = true;
let resp;
const currentPage = Number(route.query.page) || page.value;
try {
resp = await dandiRest.assetPaths(
props.identifier, props.version, location.value, page.value, FILES_PER_PAGE,
props.identifier, props.version, location.value, currentPage, FILES_PER_PAGE,
);
} catch (e) {
if (axios.isAxiosError(e) && e.response?.status === 404) {
Expand Down

0 comments on commit 3f855a6

Please sign in to comment.