-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
unsaved children does not work for unsaved Parse.File #1660
Comments
Thanks for opening this issue!
|
I've pinpointed the source of the crash to this line of code Parse-SDK-JS/src/LocalDatastore.js Line 382 in f4bfbd2
Would it be possible if we just added a check for Parse.File here? |
The call appears to be I've found that adding a check for Parse-SDK-JS/src/ParseObject.js Lines 2495 to 2496 in f4bfbd2
Should I open a pull request? |
Fixes parse-community#1660 (Caused by passing a Parse.File into the LocalDataStore, which is unexpected)
New Issue Checklist
Issue Description
When saving a new Parse.Object that is saved with a new Parse.File, the following error occurs.
TypeError: object._getId is not a function. (In 'object._getId()', 'object._getId' is undefined)
Likely it's from
_getId()
not being implemented for theParseFile
class? Since_getId()
is called here when saving unsaved children.Parse-SDK-JS/src/unsavedChildren.js
Line 37 in 8115e95
Steps to reproduce
Actual Outcome
TypeError: object._getId is not a function. (In 'object._getId()', 'object._getId' is undefined)
Expected Outcome
No errors
Environment
Node.js v16.13.1
Server
^5.4.0
Mac OS Monterey 12.5.1, Ubuntu 22.04
Database
MongoDB
6.0.2
Client
3.5.1
Logs
TypeError: object._getId is not a function. (In 'object._getId()', 'object._getId' is undefined)
The text was updated successfully, but these errors were encountered: