Just map across calendars values to generate eventSources

This commit is contained in:
Adam Goldsmith 2021-05-08 15:28:05 -04:00
parent c1ebedafc1
commit 95aa80afb1

View File

@ -47,7 +47,7 @@ export default class App extends Vue {
startTime: '10:00',
endTime: '21:00',
},
eventSources: Object.entries(calendars).map(([name, id], idx) => {
eventSources: Object.values(calendars).map((id, idx) => {
return {
googleCalendarId: id,
color: colors[idx],