Fix race condition with documents filtering
This commit is contained in:
@@ -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) === '/');
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user