mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-16 16:28:42 +00:00
Do bulk rejects in reverse order.
This commit is contained in:
parent
e616a62d68
commit
5a75663a0c
1 changed files with 2 additions and 0 deletions
|
@ -214,6 +214,8 @@ define [
|
|||
rejectChangeIds: (change_ids) ->
|
||||
changes = @rangesTracker.getChanges(change_ids)
|
||||
return if changes.length == 0
|
||||
changes.sort((a, b) -> b.op.p - a.op.p)
|
||||
|
||||
session = @editor.getSession()
|
||||
for change in changes
|
||||
if change.op.d?
|
||||
|
|
Loading…
Add table
Reference in a new issue