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:
Brian Gough 2019-09-25 13:48:25 +01:00 committed by sharelatex
parent 3c1f64782f
commit 6c2d06c78b

View file

@ -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