Replace with nothing to reset the Timeline when fetching a new one

This commit is contained in:
Maurice Parker 2020-07-20 16:44:56 -05:00
parent e7a68f433d
commit d71dc5813e
1 changed files with 2 additions and 1 deletions

View File

@ -471,9 +471,10 @@ private extension TimelineModel {
// MARK: Article Fetching
func fetchArticles() {
replaceArticles(with: Set<Article>())
guard !feeds.isEmpty else {
nameForDisplay = ""
replaceArticles(with: Set<Article>())
return
}