Replace with nothing to reset the Timeline when fetching a new one
This commit is contained in:
parent
e7a68f433d
commit
d71dc5813e
|
@ -471,9 +471,10 @@ private extension TimelineModel {
|
||||||
// MARK: Article Fetching
|
// MARK: Article Fetching
|
||||||
|
|
||||||
func fetchArticles() {
|
func fetchArticles() {
|
||||||
|
replaceArticles(with: Set<Article>())
|
||||||
|
|
||||||
guard !feeds.isEmpty else {
|
guard !feeds.isEmpty else {
|
||||||
nameForDisplay = ""
|
nameForDisplay = ""
|
||||||
replaceArticles(with: Set<Article>())
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue