Fix adding a task to an empty list

This commit is contained in:
kolaente 2020-02-14 17:45:06 +01:00
parent 00c1ed7ad7
commit 0591531949
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -338,6 +338,9 @@ export default class AbstractService {
return this.modelGetAllFactory(entry) return this.modelGetAllFactory(entry)
})) }))
} }
if(response.data === null) {
return Promise.resolve([])
}
return Promise.resolve(this.modelGetAllFactory(response.data)) return Promise.resolve(this.modelGetAllFactory(response.data))
}) })
.finally(() => { .finally(() => {