Skip to content

Commit e46034f

Browse files
committed
if currentPagePath is null return false 20250604 1
1 parent ad5da13 commit e46034f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/app/src/client/components/PageControls/PageControls.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ const PageControlsSubstance = (props: PageControlsSubstanceProps): JSX.Element =
261261
return false;
262262
}
263263

264+
if (currentPagePath == null) {
265+
return false;
266+
}
267+
264268
if (isUsersHomepage && !isUsersHomepageDeletionEnabled) {
265269
return false;
266270
}

0 commit comments

Comments
 (0)