Clear the timeline when there are no feeds selected.
This commit is contained in:
parent
8291230561
commit
16555d829a
|
@ -414,6 +414,12 @@ private extension TimelineModel {
|
|||
// MARK: Article Fetching
|
||||
|
||||
func fetchArticles() {
|
||||
guard !feeds.isEmpty else {
|
||||
nameForDisplay = ""
|
||||
replaceArticles(with: Set<Article>())
|
||||
return
|
||||
}
|
||||
|
||||
if feeds.count == 1 {
|
||||
nameForDisplay = feeds.first!.nameForDisplay
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue