Fix Caldav not valid destination calendar and only display calendars that user can edit (#3326)

* Default readOnly to false

* Display only calendars users can edit

* Remove console.log

* Remove console.log

Co-authored-by: Omar López <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2022-07-13 18:16:24 -06:00
1 parent 33e36e5320
commit bf7c86ffe5
2 files changed
+7 -4

No files matched your search

+1
View File
@@ -44,6 +44,7 @@ export const getConnectedCalendars = async (
const calendars = _(cals)
.map((cal) => ({
...cal,
readOnly: cal.readOnly || false,
primary: cal.primary || null,
isSelected: selectedCalendars.some((selected) => selected.externalId === cal.externalId),
credentialId,