mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-19 16:25:24 +00:00
Merge pull request #2173 from overleaf/bg-fix-track-changes-adapter-extensions
avoid exception for missing marker ids GitOrigin-RevId: 47faa35450cafef3c55a9b63787df1d9df9f1eaa
This commit is contained in:
parent
3c1f64782f
commit
6c2d06c78b
1 changed files with 6 additions and 0 deletions
|
@ -90,6 +90,9 @@ define(['ace/ace', 'ide/editor/EditorShareJsCodec'], function(
|
|||
}
|
||||
|
||||
onInsertRemoved(change) {
|
||||
if (this.changeIdToMarkerIdMap[change.id] == null) {
|
||||
return
|
||||
}
|
||||
const {
|
||||
background_marker_id,
|
||||
callout_marker_id
|
||||
|
@ -101,6 +104,9 @@ define(['ace/ace', 'ide/editor/EditorShareJsCodec'], function(
|
|||
}
|
||||
|
||||
onDeleteRemoved(change) {
|
||||
if (this.changeIdToMarkerIdMap[change.id] == null) {
|
||||
return
|
||||
}
|
||||
const {
|
||||
background_marker_id,
|
||||
callout_marker_id
|
||||
|
|
Loading…
Add table
Reference in a new issue