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

TypeError in autoLabelOption #265

Open
michsa opened this issue Jun 8, 2019 · 0 comments
Open

TypeError in autoLabelOption #265

michsa opened this issue Jun 8, 2019 · 0 comments

Comments

@michsa
Copy link
Contributor

michsa commented Jun 8, 2019

Currently F.autoLabelOption throws a TypeError if its argument is null or undefined. It should either:

  1. Accept null/undefined as valid inputs, resulting in something like { label: '', value: undefined }

  2. Return undefined on a nil input (and maybe also falsy or nonsensical inputs like '', [] and {}, with the possible exception of 0)

@michsa michsa changed the title Fix TypeError in autoLabelOption TypeError in autoLabelOption Jun 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant