mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #18659 from overleaf/em-crop-comments-tracked-deletes
Crop comments when processing tracked deletes GitOrigin-RevId: 662c9ed86a8ed4959d1671ce466548487f334f45
This commit is contained in:
@@ -23,6 +23,12 @@ class AddCommentOperation extends EditOperation {
|
||||
constructor(commentId, ranges, resolved = false) {
|
||||
super()
|
||||
|
||||
for (const range of ranges) {
|
||||
if (range.isEmpty()) {
|
||||
throw new Error("AddCommentOperation can't be built with empty ranges")
|
||||
}
|
||||
}
|
||||
|
||||
/** @readonly */
|
||||
this.commentId = commentId
|
||||
|
||||
|
||||
Reference in New Issue
Block a user