1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +02:00

Default to empty array results in Ember services

This commit is contained in:
McMatts 2018-03-23 11:50:21 +00:00
parent 38e8c4665a
commit 8d65c2d571
10 changed files with 36 additions and 11 deletions

View file

@ -25,6 +25,8 @@ export default Service.extend({
data: JSON.stringify(payload),
contentType: 'json'
}).then((response) => {
if (is.not.array(response)) response = [];
let results = ArrayProxy.create({
content: A([])
});