Skip to content

Commit

Permalink
AUGHGHG
Browse files Browse the repository at this point in the history
  • Loading branch information
MotorTruck1221 committed Nov 7, 2024
1 parent c1b9432 commit 826d37a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pages/[lang]/catalog/[...page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ catch (err: any) {
console.log('Error occured: ' + err);
response = {};
}
//console.log(new URL("/api/catalog-assets/", Astro.url));
const assetsJson = await response.json();
console.log(new URL("/api/catalog-assets/", Astro.url));
let assetsJson: any = {};
try {
assetsJson = await response.json();
}
catch (e) {}
const nextPage = parseInt(page!) + 1;
const previousPage = parseInt(page!) - 1;
Expand Down

0 comments on commit 826d37a

Please sign in to comment.