File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -259,16 +259,14 @@ class QueryRenderChild extends MarkdownRenderChild {
259
259
// We have to wrap the rendering inside requestAnimationFrame() to ensure
260
260
// that we get correct values for isConnected and isShown().
261
261
// (setTimeout(, 0) seemed to work too...)
262
- const isConnected = this . containerEl . isConnected ;
263
- if ( ! isConnected ) {
262
+ if ( ! this . containerEl . isConnected ) {
264
263
this . queryResultsRenderer . query . debug (
265
264
'[render] QueryRenderChild.render() Ignoring redraw request, as code block is not connected.' ,
266
265
) ;
267
266
return ;
268
267
}
269
268
270
- const isShown = this . containerEl . isShown ( ) ;
271
- if ( ! isShown ) {
269
+ if ( ! this . containerEl . isShown ( ) ) {
272
270
this . queryResultsRenderer . query . debug (
273
271
'[render] QueryRenderChild.render() Ignoring redraw request, as code block is not shown.' ,
274
272
) ;
You can’t perform that action at this time.
0 commit comments