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:
parent
30d1318d92
commit
e87b33a8c2
9 changed files with 177 additions and 168 deletions
|
@ -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 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue