We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1851264 + a126fa2 commit 6da97d3Copy full SHA for 6da97d3
src/ParseQuery.js
@@ -277,7 +277,9 @@ export default class ParseQuery {
277
findOptions
278
).then((response) => {
279
return response.results.map((data) => {
280
- data.className = this.className;
+ if (!data.className) {
281
+ data.className = this.className;
282
+ }
283
return ParseObject.fromJSON(data);
284
});
285
})._thenRunCallbacks(options);
@@ -373,7 +375,9 @@ export default class ParseQuery {
373
375
if (!objects[0]) {
374
376
return undefined;
377
}
- objects[0].className = this.className;
378
+ if (!objects[0].className) {
379
+ objects[0].className = this.className;
380
381
return ParseObject.fromJSON(objects[0]);
382
383
0 commit comments