- loading: fix redirect loop on 404s (via wabac.js 2.16.2) - misc: additional check before autoupdate, update build deps to support Node 20 bump to 1.8.2
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ class Coll extends LitElement
|
||||
async runUpdateLoop() {
|
||||
try {
|
||||
// only autoupdate if interval is set, and number of pages < 100 to avoid messing up scrolling
|
||||
while (this.editable && this.autoUpdateInterval && (!this.collInfo || this.collInfo.pages.length < 100)) {
|
||||
while (this.editable && this.autoUpdateInterval && (!this.collInfo || !this.collInfo.pages || this.collInfo.pages.length < 100)) {
|
||||
await new Promise(resolve => setTimeout(resolve, this.autoUpdateInterval * 1000));
|
||||
await this.doUpdateInfo(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user