Skip to content

Commit

Permalink
Using indexOf instead of includes for isXAxisString (apache#3733)
Browse files Browse the repository at this point in the history
  • Loading branch information
michellethomas committed May 23, 2018
1 parent ccc2a26 commit e969ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/assets/visualizations/nvd3_vis.js
Expand Up @@ -351,7 +351,7 @@ function nvd3Vis(slice, payload) {
chart.x2Axis.tickFormat(xAxisFormatter);
height += 30;
}
const isXAxisString = ['dist_bar', 'box_plot'].includes(vizType) >= 0;
const isXAxisString = ['dist_bar', 'box_plot'].indexOf(vizType) >= 0;
if (!isXAxisString && chart.xAxis && chart.xAxis.tickFormat) {
chart.xAxis.tickFormat(xAxisFormatter);
}
Expand Down

0 comments on commit e969ff8

Please sign in to comment.