Whats breaking here?
This commit is contained in:
parent
50a33d4f8d
commit
382d5d0030
1 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue