diff --git a/src/plot_api/plot_api.js b/src/plot_api/plot_api.js index b5646736fc8..2ed0c536f70 100644 --- a/src/plot_api/plot_api.js +++ b/src/plot_api/plot_api.js @@ -2042,7 +2042,7 @@ Plotly.restyle = function restyle(gd, astr, val, traces) { if(!plotDone || !plotDone.then) plotDone = Promise.resolve(); return plotDone.then(function() { - gd.emit('plotly_restyle', Lib.extendDeep([], [redoit, traces])); + gd.emit('plotly_restyle', Lib.extendDeepNoArrays([], [redoit, traces])); return gd; }); };