mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 05:42:55 +00:00
Don't remove add comment marker when updating entries
This commit is contained in:
parent
f17ce2705c
commit
2e5c6d4570
2 changed files with 3 additions and 2 deletions
|
@ -154,7 +154,9 @@ define [
|
|||
|
||||
# Assume we'll delete everything until we see it, then we'll remove it from this object
|
||||
delete_changes = {}
|
||||
delete_changes[change_id] = true for change_id, change of entries
|
||||
for change_id, change of entries
|
||||
if change_id != "add-comment"
|
||||
delete_changes[change_id] = true
|
||||
|
||||
for change in rangesTracker.changes
|
||||
delete delete_changes[change.id]
|
||||
|
|
|
@ -29,7 +29,6 @@ define [
|
|||
scope.submitNewComment()
|
||||
|
||||
scope.submitNewComment = () ->
|
||||
console.log scope.state.content
|
||||
scope.onSubmit { content: scope.state.content }
|
||||
scope.state.isAdding = false
|
||||
scope.state.content = ""
|
Loading…
Reference in a new issue