Skip to content

Commit d833155

Browse files
committed
data.Store: load() => support for arrays #795
1 parent ffcb6a0 commit d833155

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/data/Store.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class Store extends Base {
226226
Neo.Xhr.promiseJson({
227227
url: me.url
228228
}).then(data => {
229-
me.data = data.json.data;
229+
me.data = Array.isArray(data.json) ? data.json : data.json.data;
230230
me.fire('load', me.items);
231231
}).catch(err => {
232232
console.log('Error for Neo.Xhr.request', err, me.id);

0 commit comments

Comments
 (0)