Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using indexOf instead of includes for isXAxisString #3733

Merged
merged 1 commit into from Oct 27, 2017

Conversation

michellethomas
Copy link
Contributor

This PR added a check for isXAxisString = ['dist_bar', 'box_plot'].includes(vizType) >= 0 but for a different viz type (like line) includes will evaluate to false and false >= 0 will evaluate to true (so the formatter was not getting set).

Changing to use indexOf.

@mistercrunch
Copy link
Member

Ooops LGTM

@coveralls
Copy link

coveralls commented Oct 27, 2017

Coverage Status

Coverage remained the same at 71.271% when pulling 913f5c3 on michellethomas:fix_nvd3_xaxis_formatter into cbd0107 on apache:master.

@mistercrunch mistercrunch merged commit 200b66d into apache:master Oct 27, 2017
@michellethomas michellethomas deleted the fix_nvd3_xaxis_formatter branch October 27, 2017 23:04
michellethomas added a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.20.5 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.20.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants