Skip to content

Commit bd3c38b

Browse files
committed
Fix bug with page tree action when page hierarchy is disabled in config
1 parent 909ed3e commit bd3c38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/PageResource/Pages/ListPages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected function getActions(): array
3030
->icon('heroicon-o-arrow-turn-down-right')
3131
->color('gray')
3232
->visible(FilamentFlexibleContentBlockPages::config()->isParentAndPageTreeEnabled($this->getModel()))
33-
->url(static::getResource()::getUrl('tree')),
33+
->url(fn() => FilamentFlexibleContentBlockPages::config()->isParentAndPageTreeEnabled($this->getModel()) ? static::getResource()::getUrl('tree') : null),
3434
];
3535
}
3636

0 commit comments

Comments
 (0)