forked from 0x2620/pandora
use new id after create
This commit is contained in:
parent
2dfe0f3ff2
commit
09f9580e1e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue