Explorar el Código

if currentPagePath is null return false 20250604 1

taikou-m hace 1 año
padre
commit
e46034f5dc
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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;
     }