diff --git a/src/components/widget/WidgetLayout.astro b/src/components/widget/WidgetLayout.astro index dcbc7602..3adb0150 100644 --- a/src/components/widget/WidgetLayout.astro +++ b/src/components/widget/WidgetLayout.astro @@ -54,5 +54,7 @@ const className = Astro.props.class } } - customElements.define('widget-layout', WidgetLayout); - \ No newline at end of file + if (!customElements.get("widget-layout")) { + customElements.define("widget-layout", WidgetLayout); + } +