From 09f9580e1eeac9b93c836ba3f5f7bdde74f17ce1 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 22 Sep 2020 14:49:44 +0200 Subject: [PATCH] use new id after create --- static/js/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {