Skip to content

Scheduling infrastructure for absolutely everyone.

fix: selected calendars atom deselect calendar (#16825)

Lauris Skraucis5bbccad41d62
diff --git a/packages/platform/atoms/hooks/calendars/useRemoveSelectedCalendar.ts b/packages/platform/atoms/hooks/calendars/useRemoveSelectedCalendar.ts
index bd27c460241..dd94573f5e3 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;