diff --git a/app/scripts/agenda.js b/app/scripts/agenda.js index 146900c..63a8b80 100644 --- a/app/scripts/agenda.js +++ b/app/scripts/agenda.js @@ -46,7 +46,7 @@ var agendaVue = new Vue({ self.favorites = json.favs || []; }); } else { - self.favorites = JSON.parse(localStorage['fav']) || [] + self.favorites = (localStorage['fav'] && JSON.parse(localStorage['fav'])) || [] } }, getTypeColor: getTypeColor,