From 0591531949babb7cab5026107c317fe951065f50 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 14 Feb 2020 17:45:06 +0100 Subject: [PATCH] Fix adding a task to an empty list --- src/services/abstractService.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/abstractService.js b/src/services/abstractService.js index 3af2359e..50a56d1c 100644 --- a/src/services/abstractService.js +++ b/src/services/abstractService.js @@ -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(() => {