fix(ssr): polyfill localStorage/sessionStorage, guard BasicListBadge filters prop, remove this. from template

This commit is contained in:
F4ilji
2026-07-06 17:57:28 +05:00
parent eda69f4e37
commit 4c0152ae0f
4 changed files with 21 additions and 2 deletions
@@ -21,7 +21,7 @@ export default {
name: "Index",
data() {
return {
favoriteGroups: JSON.parse(localStorage.getItem('favoriteGroups')),
favoriteGroups: typeof window !== 'undefined' ? JSON.parse(localStorage.getItem('favoriteGroups') || '[]') : [],
showFavorites: false,
loading: false,
currentPageLoaded: this.schedules_paginator.current_page,