From 716e94c77621f8aa66b29e93d33eceedd3cd54c7 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 2 May 2015 08:47:10 +0930 Subject: [PATCH] All method should return an array, not an object --- framework/core/js/lib/store.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {