From f628ac4366aad6b433352c6b06ea1de5f49b0136 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Thu, 22 Sep 2022 19:13:45 +0530 Subject: [PATCH] Avoid creating dynamic HTML (#4669) --- .../web/components/v2/apps/DestinationCalendarSelector.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/web/components/v2/apps/DestinationCalendarSelector.tsx b/apps/web/components/v2/apps/DestinationCalendarSelector.tsx index 9703c23e2a..dab9bb270f 100644 --- a/apps/web/components/v2/apps/DestinationCalendarSelector.tsx +++ b/apps/web/components/v2/apps/DestinationCalendarSelector.tsx @@ -51,7 +51,7 @@ const DestinationCalendarSelector = ({ if (selected) { setSelectedOption({ value: `${selected.integration}:${selected.externalId}`, - label: `${selected.name} (${selected.externalId})` || "", + label: `${selected.name} (${selected.externalId})` || "", }); } }, [query.data?.connectedCalendars, value]); @@ -66,7 +66,7 @@ const DestinationCalendarSelector = ({ options: (selectedCalendar.calendars ?? []) .filter((cal) => cal.readOnly === false) .map((cal) => ({ - label: `${cal.name} (${cal.externalId})` || "", + label: `${cal.name} (${cal.externalId})` || "", value: `${cal.integration}:${cal.externalId}`, })), })) ?? []; @@ -83,9 +83,6 @@ const DestinationCalendarSelector = ({ title={`${t("select_destination_calendar")}: ${selectedOption?.label || ""}`}>