Skip to content
Snippets Groups Projects
Commit bfa136c9 authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

no error if no favorites

parent 0d636675
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,11 @@ export default {
favoris: {
query: FAVORIS,
variables() {
return { group: JSON.parse(localStorage.favourites) }
return {
group: localStorage.favourites
? JSON.parse(localStorage.favourites)
: []
}
},
update(data) {
let retour = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment