mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 06:09:02 +02:00
Update ChangesTracker to handle delete edge case
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user