Skip to content
Snippets Groups Projects
Commit e13ac755 authored by permcu's avatar permcu
Browse files

Saveguard calendarSelectedFeedsMixin calendar-query against no data

This threw an error on mount previously.
parent ea94457a
No related branches found
No related tags found
1 merge request!1791Saveguard calendarSelectedFeedsMixin calendar-query against no data
Pipeline #197659 passed with warnings
......@@ -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.
Finish editing this message first!
Please register or to comment