Skip to content

Commit

Permalink
test(scope): fix scope acceptance test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
velrest authored and anehx committed Oct 21, 2020
1 parent 80d16d5 commit c5a0486
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addon/components/relationship-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export default class RelationshipSelectComponent extends Component {
});
}

return this.store.findAll(this.args.modelName);
// For some reason the this.model.lenght is 1 and this.model.content.length is 2
// It looks like an issue with the way findAll retrieves all cached first before making a request.
// The {reload: true} fixes this since the cached are ignored.
return yield this.store.findAll(this.args.modelName, { reload: true });
}
}

0 comments on commit c5a0486

Please sign in to comment.