Skip to content

Commit

Permalink
Whats breaking here?
Browse files Browse the repository at this point in the history
  • Loading branch information
MotorTruck1221 committed Nov 7, 2024
1 parent 50a33d4 commit 382d5d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/[lang]/catalog/[...page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ const t = useTranslations(lang);
const { page } = Astro.params;
const response = await fetch(new URL("/api/catalog-assets/", Astro.url));
let response: any = [];
try {
response = await fetch(new URL("/api/catalog-assets/", Astro.url));
}
catch (err: any) { console.log('Error occured' + err) }
//console.log(new URL("/api/catalog-assets/", Astro.url));
const assetsJson = await response.json();
Expand Down

0 comments on commit 382d5d0

Please sign in to comment.