TypeError
Cannot read properties of undefined (reading 'categories')
store/location.js:75:39
}
}
return allServices
},
getServiceById: state => (id) => {
for (let i = 0; i < state.services.categories.length; ++i) {
const category = state.services.categories[i]
for (let j = 0; j < category.services.length; ++j) {
if (category.services[j].id == id) return category.services[j]
}
}
pages/book-now/service/_id.vue:7:
Object.fetch
import { BookingStage, createBookingRoute } from '@/components/booking/elements/Detail.vue'
export default {
async fetch({ store, params, route, redirect }) {
await store.dispatch('location/getServices')
const service = await store.getters['location/getServiceById'](route.params.id)
if (!service) {
redirect('/')
} else {
await store.dispatch('booking/clear')
node:internal/process/task_queues:96:5
processTicksAndRejections
.nuxt/server.js:253:21
async module.exports.__webpack_exports__.default
if (!Components.length) {
return render404Page()
}
// Call asyncData & fetch hooks on components matched by the route.
const asyncDatas = await Promise.all(Components.map((Component) => {
const promises = []
// Call asyncData(context)
if (Component.options.asyncData && typeof Component.options.asyncData === 'function') {
const promise = promisify(Component.options.asyncData, app.context)
Request Details
URI |
/book-now/service/789176 |
Request Method |
GET |
HTTP Version |
1.1 |
Connection |
|
Headers
HOST |
devinecosmetics.book.app |
X-REQUEST-ID |
ed59913f1d835771b8e12fc583a2f70d |
X-REAL-IP |
3.209.56.116 |
X-FORWARDED-FOR |
3.209.56.116 |
X-FORWARDED-HOST |
devinecosmetics.book.app |
X-FORWARDED-PORT |
443 |
X-FORWARDED-PROTO |
https |
X-FORWARDED-SCHEME |
https |
X-SCHEME |
https |
ACCEPT |
*/* |
USER-AGENT |
claudebot |
Cookies