adopted to corrected response format

This commit is contained in:
Markus Thielen 2023-05-08 13:15:31 +02:00
parent 0b115d1e4e
commit 89ae48138e

View File

@ -100,7 +100,9 @@ export default {
gql gql
).then(data => { ).then(data => {
/* Save the list's id in case it was just created */ /* 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 => { }).catch(e => {
const errMsg = `Failed to save list: ${e}`; const errMsg = `Failed to save list: ${e}`;
console.error(errMsg); console.error(errMsg);