Skip to content

Commit

Permalink
relayout: annotation and shape update with null
Browse files Browse the repository at this point in the history
... now remove the item for the container.
  • Loading branch information
etpinard committed Oct 25, 2016
1 parent ef87937 commit a07716d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plot_api/plot_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1927,7 +1927,7 @@ function _relayout(gd, aobj) {
if(aobj[ai] === 'add' || Lib.isPlainObject(aobj[ai])) {
undoit[ai] = 'remove';
}
else if(aobj[ai] === 'remove') {
else if(aobj[ai] === 'remove' || vi === null) {
if(objNum === -1) {
undoit[objType] = objList;
delete undoit[ai];
Expand Down

0 comments on commit a07716d

Please sign in to comment.