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 = { ...@@ -17,9 +17,11 @@ const calendarSelectedFeedsMixin = {
calendar: { calendar: {
query: gqlCalendarFeeds, query: gqlCalendarFeeds,
result({ data }) { result({ data }) {
this.selectedCalendarFeedNames = data.calendar.calendarFeeds if (data) {
.filter((c) => c.activated) this.selectedCalendarFeedNames = data.calendar.calendarFeeds
.map((c) => c.name); .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