Generate content for pages with no visible children

This commit is contained in:
Christoph Hagen
2023-02-22 14:46:40 +01:00
parent 1b6441e03e
commit a2ed35a26d
2 changed files with 5 additions and 1 deletions

View File

@ -337,6 +337,10 @@ struct Element {
var needsFirstSection: Bool {
showMostRecentSection || !featuredPages.isEmpty
}
var hasVisibleChildren: Bool {
!elements.filter { $0.state == .standard }.isEmpty
}
}
// MARK: Paths