fix(ssr): polyfill localStorage/sessionStorage, guard BasicListBadge filters prop, remove this. from template
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user