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
|
// MARK: Article Fetching
|
||||||
|
|
||||||
func fetchArticles() {
|
func fetchArticles() {
|
||||||
|
guard !feeds.isEmpty else {
|
||||||
|
nameForDisplay = ""
|
||||||
|
replaceArticles(with: Set<Article>())
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if feeds.count == 1 {
|
if feeds.count == 1 {
|
||||||
nameForDisplay = feeds.first!.nameForDisplay
|
nameForDisplay = feeds.first!.nameForDisplay
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user