Przeglądaj źródła

Removed unnecessary code

Taichi Masuyama 4 lat temu
rodzic
commit
0db9848453

+ 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 = {