Skip to content

Commit 2ec1727

Browse files
committed
refactor: ! IntersectionObserver now logs exceptions
1 parent dda03bf commit 2ec1727

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Renderer/QueryRenderer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,10 @@ class QueryRenderChild extends MarkdownRenderChild {
182182
`[render][observer] Became visible, isCacheChangedSinceLastRedraw:${this.isCacheChangedSinceLastRedraw}`,
183183
);
184184
if (this.isCacheChangedSinceLastRedraw) {
185-
// TODO Should handle exceptions here...
186185
this.queryResultsRenderer.query.debug('[render][observer] ... updating search results');
187-
this.render({ tasks: this.plugin.getTasks(), state: this.plugin.getState() }).then(() => {});
186+
this.render({ tasks: this.plugin.getTasks(), state: this.plugin.getState() })
187+
.then()
188+
.catch((e) => console.error(e));
188189
}
189190
}
190191
}

0 commit comments

Comments
 (0)