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:
parent
38e8c4665a
commit
8d65c2d571
10 changed files with 36 additions and 11 deletions
|
@ -35,9 +35,8 @@ export default Service.extend({
|
|||
return this.get('ajax').request(`templates/${folderId}`, {
|
||||
method: 'GET'
|
||||
}).then((response) => {
|
||||
if (is.not.array(response)) {
|
||||
response = [];
|
||||
}
|
||||
if (is.not.array(response)) response = [];
|
||||
|
||||
let templates = ArrayProxy.create({
|
||||
content: A([])
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue