mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Update ChangesTracker to handle delete edge case
This commit is contained in:
parent
f68c615f61
commit
cd494f7866
1 changed files with 5 additions and 1 deletions
|
@ -277,7 +277,11 @@ define [
|
|||
for change in remove_changes
|
||||
@_removeChange change
|
||||
|
||||
op.d = @_applyOpModifications(op.d, op_modifications)
|
||||
# Copy rather than modify because we still need to apply it to comments
|
||||
op = {
|
||||
p: op.p
|
||||
d: @_applyOpModifications(op.d, op_modifications)
|
||||
}
|
||||
if @track_changes and op.d.length > 0
|
||||
@_addOp op, metadata
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue