mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[document-updater] Avoid sending empty ops to project-history (#17920)
GitOrigin-RevId: a5156d99be373feb111bcc956d70c0f47047dd72
This commit is contained in:
parent
c4437c69bc
commit
238e63e08c
1 changed files with 3 additions and 1 deletions
|
@ -71,8 +71,10 @@ const RangesManager = {
|
||||||
}
|
}
|
||||||
rangesTracker.applyOp(op, { user_id: update.meta?.user_id })
|
rangesTracker.applyOp(op, { user_id: update.meta?.user_id })
|
||||||
}
|
}
|
||||||
|
if (historyOps.length > 0) {
|
||||||
historyUpdates.push({ ...update, op: historyOps })
|
historyUpdates.push({ ...update, op: historyOps })
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
rangesTracker.changes?.length > RangesManager.MAX_CHANGES ||
|
rangesTracker.changes?.length > RangesManager.MAX_CHANGES ||
|
||||||
|
|
Loading…
Reference in a new issue