Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Errors due to namespacing of embed (#13637)

Hariom Balhara7cffb30daa9a
diff --git a/apps/web/components/eventtype/EventTypeSingleLayout.tsx b/apps/web/components/eventtype/EventTypeSingleLayout.tsx
index 7f3f612fbbb..bb70726a88b 100644
--- a/apps/web/components/eventtype/EventTypeSingleLayout.tsx
+++ b/apps/web/components/eventtype/EventTypeSingleLayout.tsx
@@ -352,7 +352,7 @@ function EventTypeSingleLayout({
StartIcon={Code}
color="secondary"
variant="icon"
- namespace={eventType.slug}
+ namespace=""
tooltip={t("embed")}
tooltipSide="bottom"
tooltipOffset={4}
diff --git a/apps/web/modules/event-types/views/event-types-listing-view.tsx b/apps/web/modules/event-types/views/event-types-listing-view.tsx
index 52b1db53e4f..59e0387216d 100644
--- a/apps/web/modules/event-types/views/event-types-listing-view.tsx
+++ b/apps/web/modules/event-types/views/event-types-listing-view.tsx
@@ -539,7 +539,7 @@ export const EventTypeList = ({
{!isManagedEventType && (
<DropdownMenuItem className="outline-none">
<EventTypeEmbedButton
- namespace={type.slug}
+ namespace=""
as={DropdownItem}
type="button"
StartIcon={Code}
diff --git a/packages/embeds/embed-core/src/embed.ts b/packages/embeds/embed-core/src/embed.ts
index 4be73fc9ea1..0cb67b3a05a 100644
--- a/packages/embeds/embed-core/src/embed.ts
+++ b/packages/embeds/embed-core/src/embed.ts
@@ -439,10 +439,6 @@ class CalApi {
elementOrSelector: string | HTMLElement;
config?: PrefillAndIframeAttrsConfig;
}) {
- if (this.cal.inlineEl) {
- console.warn("Inline embed already exists. Ignoring this call");
- return;
- }
// eslint-disable-next-line prefer-rest-params
validate(arguments[0], {
required: true,