Fix adding a task to an empty list
continuous-integration/drone/push Build is passing Details

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
1 changed files with 3 additions and 0 deletions

View File

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