mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Using indexOf instead of includes for isXAxisString (#3733)
This commit is contained in:
committed by
Maxime Beauchemin
parent
cbd01074ba
commit
200b66d088
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user