fix: eslint errors
This commit is contained in:
@@ -70,10 +70,10 @@ export const load = (async ({ params, setHeaders }) => {
|
||||
}
|
||||
}`)
|
||||
|
||||
const { data: { location: location, photos, total_published, product }} = res
|
||||
const { data: { location: location, photos, total_published, product } } = res
|
||||
|
||||
if (!location.length || location.length && params.country !== location[0].country.slug) {
|
||||
throw error(404, "This location is not available… yet!")
|
||||
throw error(404, 'This location is not available… yet!')
|
||||
}
|
||||
|
||||
setHeaders({ 'Cache-Control': 'public, max-age=1, stale-while-revalidate=604799' })
|
||||
|
||||
Reference in New Issue
Block a user