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

typeof check for string, if string cast data as array for map function #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abonnell
Copy link

Reference Issue:
#69

What does this fix?
When querying the ValidateExportCompliance endpoint using the node client the function convertToType() in ApiClient.js will attempt to run the .map() function on a String.

This adds a check for data of type String, and if data is of type String it will cast it as an array so that the .map() function can successfully run on the data variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant