Generate all pages again

This commit is contained in:
Christoph Hagen 2022-09-29 16:23:58 +02:00
parent 31edd35463
commit 39a53cdb1d

View File

@ -311,13 +311,13 @@ extension Element {
} }
var linkedElements: [LinkedElement] { var linkedElements: [LinkedElement] {
let items = sortedItems let items = sortedItems.filter { $0.state == .standard }
let connected = items.enumerated().map { i, element in let connected = items.enumerated().map { i, element in
let previous = i+1 < items.count ? items[i+1] : nil let previous = i+1 < items.count ? items[i+1] : nil
let next = i > 0 ? items[i-1] : nil let next = i > 0 ? items[i-1] : nil
return (previous, element, next) return (previous, element, next)
} }
return connected + elements.filter { !$0.state.isShownInOverview }.map { (nil, $0, nil )} return connected + elements.filter { $0.state != .standard }.map { (nil, $0, nil )}
} }
/** /**