Skip to content

Commit 826d37a

Browse files
AUGHGHG
1 parent c1b9432 commit 826d37a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/pages/[lang]/catalog/[...page].astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ catch (err: any) {
1616
console.log('Error occured: ' + err);
1717
response = {};
1818
}
19-
//console.log(new URL("/api/catalog-assets/", Astro.url));
20-
const assetsJson = await response.json();
19+
console.log(new URL("/api/catalog-assets/", Astro.url));
20+
let assetsJson: any = {};
21+
try {
22+
assetsJson = await response.json();
23+
}
24+
catch (e) {}
2125
2226
const nextPage = parseInt(page!) + 1;
2327
const previousPage = parseInt(page!) - 1;

0 commit comments

Comments
 (0)