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

fix: error handler in updating an array #223

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

dmitry-lobanov
Copy link
Contributor

noticed that body is destructed before check for an error
https://github.com/Airtable/airtable.js/blob/master/src/table.ts#L245

in a case when body has no records it would throw TypeError: Cannot read property 'records' of undefined

Copy link

@KateRudolph-at KateRudolph-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!! 💜 🎉

@KateRudolph-at KateRudolph-at merged commit 96e2e80 into Airtable:master Oct 13, 2020
@dmitry-lobanov dmitry-lobanov deleted the fix/err-update branch November 13, 2020 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants