Fix: never attempt update on 0 items
parent
26b2797e2c
commit
65e5f2ac86
|
@ -381,6 +381,9 @@ export class FeedModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _update() {
|
private async _update() {
|
||||||
|
if (!this.feed.length) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this._xLoading()
|
this._xLoading()
|
||||||
let numToFetch = this.feed.length
|
let numToFetch = this.feed.length
|
||||||
let cursor = undefined
|
let cursor = undefined
|
||||||
|
|
|
@ -317,6 +317,9 @@ export class NotificationsViewModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _update() {
|
private async _update() {
|
||||||
|
if (!this.notifications.length) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this._xLoading()
|
this._xLoading()
|
||||||
let numToFetch = this.notifications.length
|
let numToFetch = this.notifications.length
|
||||||
let cursor = undefined
|
let cursor = undefined
|
||||||
|
|
Loading…
Reference in New Issue