From 712f172071bf1c91e0c0ab96bca99a8dbbf8bd5d Mon Sep 17 00:00:00 2001 From: F4ilji Date: Mon, 31 Aug 2026 19:45:12 +0500 Subject: [PATCH] fix(schedule): SSR-safe props to prevent null component hydration error --- resources/js/Pages/Client/Schedules/Index.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/resources/js/Pages/Client/Schedules/Index.vue b/resources/js/Pages/Client/Schedules/Index.vue index 819031c..610c9ce 100755 --- a/resources/js/Pages/Client/Schedules/Index.vue +++ b/resources/js/Pages/Client/Schedules/Index.vue @@ -24,7 +24,7 @@ export default { favoriteGroups: typeof window !== 'undefined' ? JSON.parse(localStorage.getItem('favoriteGroups') || '[]') : [], showFavorites: false, loading: false, - currentPageLoaded: this.schedules_paginator.current_page, + currentPageLoaded: this.schedules_paginator?.current_page ?? 1, }; }, components: { @@ -57,13 +57,16 @@ export default { type: Object }, seo: { - type: Object + type: Object, + default: () => ({}) }, breadcrumbs: { - type: Object + type: Object, + default: () => ({}) }, faculties: { - type: Object + type: Object, + default: () => ({}) }, }, methods: { @@ -94,8 +97,8 @@ export default {