File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -250,19 +250,19 @@ export class QueryResultsRenderer {
250250
251251 private willBeRenderedLater ( task : ListItem , renderedTasks : Set < ListItem > , tasks : ListItem [ ] ) {
252252 // Try to find the closest parent that is a task
253- let closestParent = task . parent ;
254- while ( closestParent !== null && ! ( closestParent instanceof Task ) ) {
255- closestParent = closestParent . parent ;
253+ let closestParentTask = task . parent ;
254+ while ( closestParentTask !== null && ! ( closestParentTask instanceof Task ) ) {
255+ closestParentTask = closestParentTask . parent ;
256256 }
257257
258- if ( ! closestParent ) {
258+ if ( ! closestParentTask ) {
259259 return false ;
260260 }
261261
262- if ( ! renderedTasks . has ( closestParent ) ) {
262+ if ( ! renderedTasks . has ( closestParentTask ) ) {
263263 // This task is a direct or indirect child of another task that we are waiting to draw,
264264 // so don't draw it yet, it will be done recursively later.
265- if ( tasks . includes ( closestParent ) ) {
265+ if ( tasks . includes ( closestParentTask ) ) {
266266 return true ;
267267 }
268268 }
You can’t perform that action at this time.
0 commit comments