()
| 449 | |
| 450 | |
| 451 | processResolvedConflicts() { |
| 452 | const editor = this.context.systems.editor; |
| 453 | |
| 454 | for (const conflict of this._conflicts) { |
| 455 | if (conflict.chosen === 1) { // user chose "use theirs" |
| 456 | const graph = editor.staging.graph; |
| 457 | const entity = graph.hasEntity(conflict.id); |
| 458 | if (entity?.type === 'way') { |
| 459 | for (const child of utilArrayUniq(entity.nodes)) { |
| 460 | editor.perform(actionRevert(child)); |
| 461 | } |
| 462 | } |
| 463 | editor.perform(actionRevert(conflict.id)); |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | this.save(true, false); // tryAgain = true, checkConflicts = false |
| 468 | } |
| 469 | } |
no test coverage detected