Fix race condition with documents filtering

This commit is contained in:
Basti 2018-01-03 19:48:55 +00:00
parent 174f69f84d
commit afa1552ebf
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ export default Controller.extend({
}.property('rootListing.[]', 'model.[]'),
documents: computed('currentListing.[]', function () {
if (isEmpty(this.get('currentListing'))) { return []; }
return this.get('currentListing')
.reject(item => item.path.substr(-1) === '/');
}),