From 89ae48138eb36ca73d5dd1a302dedfeb6b92006c Mon Sep 17 00:00:00 2001 From: Markus Thielen Date: Mon, 8 May 2023 13:15:31 +0200 Subject: [PATCH] adopted to corrected response format --- src/components/Lists.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Lists.vue b/src/components/Lists.vue index 1241b39..0a41d4c 100644 --- a/src/components/Lists.vue +++ b/src/components/Lists.vue @@ -100,7 +100,9 @@ export default { gql ).then(data => { /* Save the list's id in case it was just created */ - list.id = data.List.id; + if (!list.id) { + list.id = data.createList.id; + } }).catch(e => { const errMsg = `Failed to save list: ${e}`; console.error(errMsg);