diff --git a/src/routes/[country]/[location]/+page.svelte b/src/routes/[country]/[location]/+page.svelte index 93111b3..87e9af1 100644 --- a/src/routes/[country]/[location]/+page.svelte +++ b/src/routes/[country]/[location]/+page.svelte @@ -27,9 +27,10 @@ export let data: PageData + let { photos, totalPhotos }: { photos: any[], totalPhotos: number } = data + $: ({ photos, totalPhotos } = data) + const { location, product = undefined }: { location: any, totalPhotos: number, product: any } = data const { params } = $page - let { photos }: { photos: any[] } = data - const { location, totalPhotos, product = undefined }: { location: any, totalPhotos: number, product: any } = data dayjs.extend(relativeTime)