소스 검색

clean code

kaori 4 년 전
부모
커밋
1db6c43fb3
1개의 변경된 파일1개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 9
      packages/app/src/components/Page/TrashPageAlert.jsx

+ 1 - 9
packages/app/src/components/Page/TrashPageAlert.jsx

@@ -57,18 +57,10 @@ const TrashPageAlert = (props) => {
     if (typeof pathOrPathsToDelete !== 'string') {
       return;
     }
-
     mutateChildren();
 
     const path = pathOrPathsToDelete;
-
-    if (isCompletely) {
-      // redirect to NotFound Page
-      window.location.href = path;
-    }
-    else {
-      window.location.reload();
-    }
+    window.location.href = path;
   }, [mutateChildren]);
 
   function openPageDeleteModalHandler() {