diff --git a/libs/components/common/src/lib/list/index.tsx b/libs/components/common/src/lib/list/index.tsx index c00a4e1415..c1ec42557d 100644 --- a/libs/components/common/src/lib/list/index.tsx +++ b/libs/components/common/src/lib/list/index.tsx @@ -39,14 +39,6 @@ type MenuItemsProps = { export const CommonList = (props: MenuItemsProps) => { const { items, currentItem, setCurrentItem, onSelected } = props; - // const JSONUnsupportedBlockTypes = useFlag('JSONUnsupportedBlockTypes', [ - // 'page', - // ]); - // TODO Insert bidirectional link to be developed - const JSONUnsupportedBlockTypes = ['page']; - const usedItems = items.filter(item => { - return !JSONUnsupportedBlockTypes.includes(item?.content?.id); - }); return (
{ commonListContainer, ])} > - {usedItems?.length ? ( - usedItems.map((item, idx) => { + {items?.length ? ( + items.map((item, idx) => { if (item.renderCustom) { return item.renderCustom(item); } else if (item.block) { diff --git a/libs/components/editor-plugins/src/menu/command-menu/config.ts b/libs/components/editor-plugins/src/menu/command-menu/config.ts index 9c06bc81ed..8e0aba6df5 100644 --- a/libs/components/editor-plugins/src/menu/command-menu/config.ts +++ b/libs/components/editor-plugins/src/menu/command-menu/config.ts @@ -68,11 +68,12 @@ export const menuItemsMap: { type: Protocol.Block.Type.text, icon: TextIcon, }, - { - text: 'Page', - type: 'page', - icon: PagesIcon, - }, + // the Page block should not be inserted + // { + // text: 'Page', + // type: Protocol.Block.Type.page, + // icon: PagesIcon, + // }, { text: 'Heading 1', type: Protocol.Block.Type.heading1,