1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-30 02:29:43 +02:00

More refactoring and fixes

This commit is contained in:
zinyando 2016-08-17 15:37:46 +02:00
parent 30d1318d92
commit e87b33a8c2
9 changed files with 177 additions and 168 deletions

View file

@ -39,6 +39,10 @@ export default Ember.Service.extend({
content: Ember.A([])
});
if (isObject(response)) {
return documents;
}
documents = response.map((doc) => {
let data = this.get('store').normalize('document', doc);
return this.get('store').push({ data: data });