Clear the timeline when there are no feeds selected.

This commit is contained in:
Maurice Parker 2020-07-18 21:16:55 -05:00
parent 8291230561
commit 16555d829a
1 changed files with 6 additions and 0 deletions

View File

@ -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 {