Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

unused children

Oleg Isonen21975906ffb1
diff --git a/apps/designer/app/canvas/features/wrapper-component/text-editor/editor.tsx b/apps/designer/app/canvas/features/wrapper-component/text-editor/editor.tsx
index f9318fa648..d917271880 100644
--- a/apps/designer/app/canvas/features/wrapper-component/text-editor/editor.tsx
+++ b/apps/designer/app/canvas/features/wrapper-component/text-editor/editor.tsx
@@ -13,13 +13,12 @@ import { useEffect } from "react";
import { useSelectedElement } from "~/canvas/shared/nano-states";
type EditorProps = {
- children?: JSX.Element;
editable: JSX.Element;
instance: Instance;
onChange: (updates: ChildrenUpdates) => void;
};
-const Editor = ({ instance, editable, children, onChange }: EditorProps) => {
+const Editor = ({ instance, editable, onChange }: EditorProps) => {
const [editor] = useLexicalComposerContext();
const [element] = useSelectedElement();
@@ -37,7 +36,6 @@ const Editor = ({ instance, editable, children, onChange }: EditorProps) => {
<HistoryPlugin />
<InstancePlugin>{instance.children}</InstancePlugin>
<ToolbarConnectorPlugin />
- {children}
</>
);
};