No need to load builds into repo.builds

Builds on repo model already incorporate all of the builds that belong
to a given repo and are loaded into a store, so no need to load them to
expandable array.
This commit is contained in:
Piotr Sarnacki 2016-01-18 13:18:17 +01:00
parent 2d0aee4e68
commit 6efb2ac449

View File

@ -14,7 +14,7 @@ export default Ember.Controller.extend({
id = this.get('repo.id');
number = this.get('builds.lastObject.number');
type = this.get('tab') === "builds" ? 'push' : 'pull_request';
return this.get('builds').load(this.olderThanNumber(id, number, type));
this.olderThanNumber(id, number, type);
},
displayShowMoreButton: function() {