Skip to content

Commit fd4df2c

Browse files
authored
Merge pull request #35 from arthur5005/bugfix/force-reload-on-different-query-options
Fixes issues surrounding force reloading on different query options
2 parents 47d5f25 + 4c6f15d commit fd4df2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/mixins/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default Mixin.create({
6464
this.set(_queryIdPropertyName, currentQueryId);
6565

6666
//get the relationship value, reloading if necessary
67-
const value = this.reloadRelationship(propertyName, JSON.stringify(params) === JSON.stringify(oldParams));
67+
const value = this.reloadRelationship(propertyName, JSON.stringify(params) !== JSON.stringify(oldParams));
6868

6969
//return the promise, clearing the ajax options property
7070
return value.catch(function (error) {

0 commit comments

Comments
 (0)