Fix adding a task to an empty list
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kolaente 2020-02-14 17:45:06 +01:00
parent 00c1ed7ad7
commit 0591531949
Signed by: konrad
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(() => {