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);