diff --git a/src/components/editor/elements/container.tsx b/src/components/editor/elements/container.tsx index 5e3c93c..bc50056 100644 --- a/src/components/editor/elements/container.tsx +++ b/src/components/editor/elements/container.tsx @@ -16,7 +16,7 @@ type Props = { element: EditorElement }; export default function Container({ element }: Props) { const { id, content, type } = element; - const { dispatch } = useEditor(); + const { editor, dispatch } = useEditor(); const isRoot = type === "__body"; const handleDragStart = (e: React.DragEvent) => { @@ -126,8 +126,11 @@ export default function Container({ element }: Props) {