use new id after create

This commit is contained in:
j 2020-09-22 14:49:44 +02:00
parent 2dfe0f3ff2
commit 09f9580e1e

View file

@ -237,7 +237,7 @@ pandora.ui.editor = function(data) {
queue[data.id] = []; queue[data.id] = [];
pandora.api.addAnnotation(edit, function(result) { pandora.api.addAnnotation(edit, function(result) {
callback(result); callback(result);
var id = data.id, var id = result.data.id,
pending = queue[id]; pending = queue[id];
delete queue[id]; delete queue[id];
pending.length && Ox.serialForEach(pending, function(edit, index, array, callback) { pending.length && Ox.serialForEach(pending, function(edit, index, array, callback) {