Просмотр исходного кода

if currentPagePath is null return false 20250604 1

taikou-m 10 месяцев назад
Родитель
Сommit
e46034f5dc
1 измененных файлов с 4 добавлено и 0 удалено
  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;
     }