Skip to content

Commit

Permalink
fix(core): Fix clearing of pending task in zoneless cleanup implement…
Browse files Browse the repository at this point in the history
…ation (angular#55074)

This commit fixes a mistake in angular#54952 where the first pending task was falsey because its ID is 0

PR Close angular#55074
  • Loading branch information
atscott authored and dylhunn committed Mar 27, 2024
1 parent 80f96e7 commit e02bcf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class ChangeDetectionSchedulerImpl implements ChangeDetectionScheduler {
// before removing it from the pending tasks (or the tasks service should
// not synchronously emit stable, similar to how Zone stableness only
// happens if it's still stable after a microtask).
if (this.pendingRenderTaskId) {
if (this.pendingRenderTaskId !== null) {
const taskId = this.pendingRenderTaskId;
this.pendingRenderTaskId = null;
this.taskService.remove(taskId);
Expand Down

0 comments on commit e02bcf8

Please sign in to comment.