UndoManager: fix special deletion case. closes #447 closes #443

This commit is contained in:
Kevin Jahns
2022-07-28 13:52:19 +02:00
parent 7a61c90261
commit df2d59e2fb
2 changed files with 29 additions and 5 deletions

View File

@@ -211,11 +211,6 @@ export const redoItem = (transaction, item, redoitems, itemsToDelete, ignoreRemo
while (left !== null && left.redone !== null) {
left = getItemCleanStart(transaction, left.redone)
}
// check wether we were allowed to follow right (indicating that originally this op was replaced by another item)
if (left === null || /** @type {AbstractType<any>} */ (left.parent)._item !== parentItem) {
// invalid parent; should never happen
return null
}
if (left && left.right !== null) {
// It is not possible to redo this item because it conflicts with a
// change from another client