Skip to content

[57257] [Issue #220] Fix Passing undefined fileids value to draft#230

Merged
mrashed-dev merged 6 commits intomainfrom
mostafarashed/ch57257/passing-undefined-fileids-value-to-draft
May 25, 2021
Merged

[57257] [Issue #220] Fix Passing undefined fileids value to draft#230
mrashed-dev merged 6 commits intomainfrom
mostafarashed/ch57257/passing-undefined-fileids-value-to-draft

Conversation

@mrashed-dev
Copy link
Copy Markdown
Contributor

Description

This PR fixes #220, where an error would be thrown when trying to save a new drafts object with an undefined fieldsids attribute set. This was caused because we were calling a parent function by this. instead of super.. We also found and fixed a subsequent issue where if the filesids are not set, the parent function might call .map on an undefined variable, throwing an error.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@shortcut-integration
Copy link
Copy Markdown

@mrashed-dev mrashed-dev merged commit 74b5e6b into main May 25, 2021
mrashed-dev added a commit that referenced this pull request Jun 9, 2021
New `nylas` v5.5.0 release bringing in the following new features:
* Replaced deprecated `request` library with `node-fetch` (#234)
* Add custom error class `NylasApiError` to add more error details returned from the API (#236)
* Add support for read only fields (#237)
* Enabled Nylas API v2.2 support (#237)

The new release also fixes the following:
* Fix bug where saving a `draft` object with an undefined `filesIds` would throw an error (#230)
* Fix typings for classes that extend `RestfulModelCollection` or `RestfulModelInstance` (#238)
@agtang96 agtang96 deleted the mostafarashed/ch57257/passing-undefined-fileids-value-to-draft branch April 5, 2023 15:12
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.

Bug: Passing undefined fileIds value to Draft throws error

2 participants