Skip to content

Comments

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

Open
lrdueck wants to merge 1 commit intofacebook:mainfrom
lrdueck:response-data-object
Open

Check if response.data is an object or an array before processing.#137
lrdueck wants to merge 1 commit intofacebook:mainfrom
lrdueck:response-data-object

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