We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some of the fields in my models have the value of null. This causes an error because null doesn't have a constructor property.
null
js-data-jsonapi/src/JsonApiSerializer.ts
Line 621 in d67ff61
I think that this: if (val.constructor === ModelPlaceHolder) {
if (val.constructor === ModelPlaceHolder) {
Needs to change to this: if (val !== null && val.constructor === ModelPlaceHolder) {
if (val !== null && val.constructor === ModelPlaceHolder) {
The text was updated successfully, but these errors were encountered:
9a10108
Thanks @rgant , i appreciate the feedback!
Sorry, something went wrong.
No branches or pull requests
Some of the fields in my models have the value of
null
. This causes an error becausenull
doesn't have a constructor property.js-data-jsonapi/src/JsonApiSerializer.ts
Line 621 in d67ff61
I think that this:
if (val.constructor === ModelPlaceHolder) {
Needs to change to this:
if (val !== null && val.constructor === ModelPlaceHolder) {
The text was updated successfully, but these errors were encountered: