( children: Component[], startIndex: number, )
| 445 | } |
| 446 | |
| 447 | function removeUndoContextComponents( |
| 448 | children: Component[], |
| 449 | startIndex: number, |
| 450 | ): void { |
| 451 | for (let i = children.length - 1; i >= startIndex; i--) { |
| 452 | const child = children[i]; |
| 453 | if (child !== undefined && isUndoContextComponent(child)) { |
| 454 | children.splice(i, 1); |
| 455 | } |
| 456 | } |
| 457 | } |
| 458 | |
| 459 | function isUndoAnchorComponent(child: Component): boolean { |
| 460 | return ( |
no test coverage detected