Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit b8ce38c

Browse files
committed
fix scheduling when no calendar
1 parent 83d461e commit b8ce38c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/constants/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -724,4 +724,4 @@ export const NYLAS_CONNECT_CALENDAR_JWT_SECRET = "secret";
724724
/*
725725
* connecting calendar switcher
726726
*/
727-
export const ALLOW_CONNECTING_CALENDAR = false
727+
export const ALLOW_CONNECTING_CALENDAR = false;

src/utils/helpers.js

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export const isCustomRole = (role) =>
8787
* @returns {object} the calendar object which is primary
8888
*/
8989
export const getPrimaryCalendar = (userMeetingSettings) =>
90+
userMeetingSettings &&
9091
_.find(userMeetingSettings.nylasCalendars, (calendar) => calendar.isPrimary);
9192

9293
/**

0 commit comments

Comments
 (0)