diff --git a/framework/core/js/lib/store.js b/framework/core/js/lib/store.js index 1d2401008..165ecb968 100644 --- a/framework/core/js/lib/store.js +++ b/framework/core/js/lib/store.js @@ -51,7 +51,8 @@ export default class Store { } all(type) { - return this.data[type] || {}; + var data = this.data[type]; + return data ? Object.keys(data).map(id => data[id]) : []; } model(type, Model) {