Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertBroersma committed Nov 27, 2023
1 parent dbfc68d commit 49b5250
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,24 @@ let catalogPath = `${baseURL}/catalog.json`
let headers = useRequestHeaders()
console.log({ headers })
let { data: catalogJson } = await useAsyncData<CatalogType>(
() =>
fetch(catalogPath, { headers })
.then((res) => {
console.log(res)
return res
})
.then((res) => res.json())
.catch((err) => console.error(err)),
{},
)
let catalog = catalogJson.value
console.log({ catalog })
let childrenLinks = catalog?.links.filter((link) => link.rel === 'child') ?? []
let collections = (
Expand Down

0 comments on commit 49b5250

Please sign in to comment.