Fix race condition with documents filtering
This commit is contained in:
parent
174f69f84d
commit
afa1552ebf
|
@ -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) === '/');
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue