Parcourir la source

if currentPagePath is null return false 20250604 1

taikou-m il y a 1 an
Parent
commit
e46034f5dc
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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;
     }
 
+    if (currentPagePath == null) {
+      return false;
+    }
+
     if (isUsersHomepage && !isUsersHomepageDeletionEnabled) {
       return false;
     }