Taichi Masuyama 4 лет назад
Родитель
Сommit
0db9848453
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      packages/app/src/components/Sidebar/PageTree/Item.tsx

+ 0 - 2
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -115,9 +115,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
     const { _id: pageId, revision: revisionId, path } = page;
 
     if (pageId == null || revisionId == null || path == null) {
-      // TODO: i18n
       throw Error('Any of _id, revision, and path must not be null.');
-      return;
     }
 
     const pageToDelete: IPageForPageDeleteModal = {