diff --git a/static/js/editor.js b/static/js/editor.js index 16da2d01..8cd460a5 100644 --- a/static/js/editor.js +++ b/static/js/editor.js @@ -237,7 +237,7 @@ pandora.ui.editor = function(data) { queue[data.id] = []; pandora.api.addAnnotation(edit, function(result) { callback(result); - var id = data.id, + var id = result.data.id, pending = queue[id]; delete queue[id]; pending.length && Ox.serialForEach(pending, function(edit, index, array, callback) {