diff --git a/web/space.ts b/web/space.ts index ac577f1..8991fc0 100644 --- a/web/space.ts +++ b/web/space.ts @@ -26,7 +26,10 @@ export class Space { this.watchedPages.delete(pageName); } }); - this.updatePageList().catch(console.error); + setTimeout(() => { + // Next tick, to ensure that the space is initialized + this.updatePageList().catch(console.error); + }); } public async updatePageList() {