Skip to content
Snippets Groups Projects
Verified Commit 81a77565 authored by permcu's avatar permcu Committed by Jonathan Weth
Browse files

Saveguard calendarSelectedFeedsMixin calendar-query against no data

This threw an error on mount previously.

(cherry picked from commit e13ac755)
parent abc9badd
No related branches found
No related tags found
No related merge requests found
......@@ -17,9 +17,11 @@ const calendarSelectedFeedsMixin = {
calendar: {
query: gqlCalendarFeeds,
result({ data }) {
this.selectedCalendarFeedNames = data.calendar.calendarFeeds
.filter((c) => c.activated)
.map((c) => c.name);
if (data) {
this.selectedCalendarFeedNames = data.calendar.calendarFeeds
.filter((c) => c.activated)
.map((c) => c.name);
}
},
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment