refactor: clean anti pattern editor element

This commit is contained in:
lawvs
2022-08-18 17:09:28 +08:00
parent 05361e75a4
commit 06d442a8c1
5 changed files with 12 additions and 24 deletions

View File

@@ -13,7 +13,7 @@ export function RenderBlock({
blockId,
hasContainer = true,
}: RenderBlockProps) {
const { editor, editorElement } = useEditor();
const { editor } = useEditor();
const { block } = useBlock(blockId);
const setRef = useCallback(
@@ -50,7 +50,6 @@ export function RenderBlock({
block={block}
columns={columns.columns}
columnsFromId={columns.fromId}
editorElement={editorElement}
/>
);