Generate all pages again
This commit is contained in:
parent
31edd35463
commit
39a53cdb1d
@ -311,13 +311,13 @@ extension Element {
|
||||
}
|
||||
|
||||
var linkedElements: [LinkedElement] {
|
||||
let items = sortedItems
|
||||
let items = sortedItems.filter { $0.state == .standard }
|
||||
let connected = items.enumerated().map { i, element in
|
||||
let previous = i+1 < items.count ? items[i+1] : nil
|
||||
let next = i > 0 ? items[i-1] : nil
|
||||
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 )}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user