Taichi Masuyama 3 лет назад
Родитель
Сommit
7487da3708

+ 0 - 3
packages/app/src/components/Navbar/GrowiContextualSubNavigation.tsx

@@ -303,9 +303,6 @@ const GrowiContextualSubNavigation = (props: GrowiContextualSubNavigationProps):
         router.push(path);
       }
       else if (currentPathname != null) {
-        // Do not use "router.push(currentPathname)" to avoid `Error: Invariant: attempted to hard navigate to the same URL`
-        // See: https://github.com/weseek/growi/pull/7061
-        // router.reload();
         router.push(currentPathname);
       }
     };

+ 0 - 3
packages/app/src/components/PageAlert/TrashPageAlert.tsx

@@ -54,9 +54,6 @@ export const TrashPageAlert = (): JSX.Element => {
       }
       try {
         unlink(currentPagePath);
-        // Do not use "router.push(`/${pageId}`)" to avoid `Error: Invariant: attempted to hard navigate to the same URL`
-        // See: https://github.com/weseek/growi/pull/7054
-        // router.reload();
         router.push(`/${pageId}`);
       }
       catch (err) {