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.[]'),
|
}.property('rootListing.[]', 'model.[]'),
|
||||||
|
|
||||||
documents: computed('currentListing.[]', function () {
|
documents: computed('currentListing.[]', function () {
|
||||||
|
if (isEmpty(this.get('currentListing'))) { return []; }
|
||||||
|
|
||||||
return this.get('currentListing')
|
return this.get('currentListing')
|
||||||
.reject(item => item.path.substr(-1) === '/');
|
.reject(item => item.path.substr(-1) === '/');
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user