adopted to corrected response format
This commit is contained in:
parent
0b115d1e4e
commit
89ae48138e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user