diff --git a/packages/platform/atoms/hooks/calendars/useRemoveSelectedCalendar.ts b/packages/platform/atoms/hooks/calendars/useRemoveSelectedCalendar.ts index bd27c46024..dd94573f5e 100644 --- a/packages/platform/atoms/hooks/calendars/useRemoveSelectedCalendar.ts +++ b/packages/platform/atoms/hooks/calendars/useRemoveSelectedCalendar.ts @@ -38,7 +38,9 @@ export const useRemoveSelectedCalendar = ( return http .delete( - `/selected-calendars?credentialId=${credentialId}&integration=${integration}&externalId=${externalId}` + `/selected-calendars?credentialId=${credentialId}&integration=${integration}&externalId=${encodeURIComponent( + externalId + )}` ) .then((res) => { return res.data;