mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(compiler): Fix a bug in OpList.replaceWithMany (#51876)
Fix a bug where replaceWithMany was incorrectly setting the previous item PR Close #51876
This commit is contained in:
committed by
Alex Rickabaugh
parent
4590138639
commit
8f1feb6036
@@ -245,7 +245,7 @@ export class OpList<OpT extends Op<OpT>> {
|
||||
// Replace `oldOp` with the chain `first` -> `last`.
|
||||
if (oldPrev !== null) {
|
||||
oldPrev.next = first;
|
||||
first.prev = oldOp.prev;
|
||||
first.prev = oldPrev;
|
||||
}
|
||||
|
||||
if (oldNext !== null) {
|
||||
|
||||
Reference in New Issue
Block a user