Skip to content

Commit

Permalink
prevent children without content from being hidden.
Browse files Browse the repository at this point in the history
  • Loading branch information
jflearn committed Sep 28, 2024
1 parent e4a3c71 commit 6d1ff11
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Model/RollupPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ public function Children() {
if ( $this->ShowLinksOnly !== 1 ) {
return ArrayList::create();
}
parent::Children();

return parent::Children()->exclude( ['Content' => ''] );
return parent::Children();
}


Expand Down

0 comments on commit 6d1ff11

Please sign in to comment.