kaori 4 лет назад
Родитель
Сommit
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() {