Skip to content

Commit b7fda1c

Browse files
committed
Fix broken unit test on colorbar
1 parent 363d5ec commit b7fda1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plot_api/plot_api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Plotly.plot = function(gd, data, layout, config) {
206206
if(trace.visible !== true || !trace._module.colorbar) {
207207
Plots.autoMargin(gd, 'cb' + trace.uid);
208208
}
209-
else if(Plots.traceIs(trace, 'markerColorscale') && Colorbar.hasColorbar(trace)) {
209+
else if(Plots.traceIs(trace, 'markerColorscale') || Colorbar.hasColorbar(trace)) {
210210
trace._module.colorbar(gd, cd);
211211
}
212212
}

0 commit comments

Comments
 (0)