瀏覽代碼

remove unnecessary

kosei-n 2 年之前
父節點
當前提交
9a776f02c2
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      apps/app/src/components/PageSelectModal/PageSelectModal.tsx

+ 1 - 2
apps/app/src/components/PageSelectModal/PageSelectModal.tsx

@@ -40,9 +40,8 @@ export const PageSelectModal: FC = () => {
 
   const onClickTreeItem = useCallback((page: IPageForItem) => {
     const parentPagePath = page.path;
-    const parentPageId = page._id;
 
-    if (parentPagePath == null || parentPageId == null) {
+    if (parentPagePath == null) {
       return;
     }