Fix: never attempt update on 0 items
This commit is contained in:
@@ -381,6 +381,9 @@ export class FeedModel {
|
||||
}
|
||||
|
||||
private async _update() {
|
||||
if (!this.feed.length) {
|
||||
return
|
||||
}
|
||||
this._xLoading()
|
||||
let numToFetch = this.feed.length
|
||||
let cursor = undefined
|
||||
|
||||
@@ -317,6 +317,9 @@ export class NotificationsViewModel {
|
||||
}
|
||||
|
||||
private async _update() {
|
||||
if (!this.notifications.length) {
|
||||
return
|
||||
}
|
||||
this._xLoading()
|
||||
let numToFetch = this.notifications.length
|
||||
let cursor = undefined
|
||||
|
||||
Reference in New Issue
Block a user