diff options
Diffstat (limited to 'app/assets/javascripts/boards/stores')
-rw-r--r-- | app/assets/javascripts/boards/stores/actions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/boards/stores/actions.js b/app/assets/javascripts/boards/stores/actions.js index d96d92948be..e044283534a 100644 --- a/app/assets/javascripts/boards/stores/actions.js +++ b/app/assets/javascripts/boards/stores/actions.js @@ -743,11 +743,11 @@ export default { }, }) .then(({ data }) => { - if (data.createIssue.errors.length) { + if (data.createIssuable.errors.length) { throw new Error(); } - const rawIssue = data.createIssue?.issue; + const rawIssue = data.createIssuable?.issuable; const formattedIssue = formatIssue(rawIssue); dispatch('removeListItem', { listId: list.id, itemId: placeholderId }); dispatch('addListItem', { list, item: formattedIssue, position: 0 }); |