Fix adding a task to an empty list
This commit is contained in:
parent
00c1ed7ad7
commit
0591531949
1 changed files with 3 additions and 0 deletions
|
@ -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(() => {
|
||||||
|
|
Loading…
Reference in a new issue