Browse Source

if currentPagePath is null return false 20250604 1

taikou-m 10 months ago
parent
commit
e46034f5dc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      apps/app/src/client/components/PageControls/PageControls.tsx

+ 4 - 0
apps/app/src/client/components/PageControls/PageControls.tsx

@@ -261,6 +261,10 @@ const PageControlsSubstance = (props: PageControlsSubstanceProps): JSX.Element =
       return false;
       return false;
     }
     }
 
 
+    if (currentPagePath == null) {
+      return false;
+    }
+
     if (isUsersHomepage && !isUsersHomepageDeletionEnabled) {
     if (isUsersHomepage && !isUsersHomepageDeletionEnabled) {
       return false;
       return false;
     }
     }