From c5a6e94a71f62143bf4d40034c68d01ea80ad40f Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Thu, 15 Sep 2022 19:09:45 +0800 Subject: [PATCH] fix: remove special menu --- libs/components/common/src/lib/list/index.tsx | 12 ++---------- .../editor-plugins/src/menu/command-menu/config.ts | 11 ++++++----- 2 files changed, 8 insertions(+), 15 deletions(-) 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 (