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

Check if response.data is an object or an array before processing. #137

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

Conversation

lrdueck
Copy link

@lrdueck lrdueck commented Dec 23, 2019

This addresses the bug in issue: #106
Sometimes the data response from the Facebook endpoint is an object but the current method expects it to always be an array. This change checks if the response is an object or an array before processing it.

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

Successfully merging this pull request may close these issues.

3 participants