diff --git a/src/plots/cartesian/axes.js b/src/plots/cartesian/axes.js index dd653cdeff9..3c191c5069f 100644 --- a/src/plots/cartesian/axes.js +++ b/src/plots/cartesian/axes.js @@ -2650,7 +2650,7 @@ axes.drawOne = function(gd, ax, opts) { }; function filterPush(push, automargin) { - if(!push) return push; + if(!push) return; var keepMargin = Object.keys(MARGIN_MAPPING).reduce(function(data, nextKey) { if(automargin.indexOf(nextKey) !== -1) { @@ -2665,7 +2665,6 @@ function filterPush(push, automargin) { else delete push[key]; } }); - return push; } function getBoundaryVals(ax, vals) {