Commit 254b2bf7 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'fix-swimlanes-new-issue-format' into 'master'

Swimlanes - Fix id format of newly created issue

See merge request gitlab-org/gitlab!47750
parents afee2bc8 f562599a
...@@ -365,7 +365,10 @@ export default { ...@@ -365,7 +365,10 @@ export default {
dispatch('createNewIssue', issueInput) dispatch('createNewIssue', issueInput)
.then(res => { .then(res => {
commit(types.ADD_ISSUE_TO_LIST, { list, issue: formatIssue(res) }); commit(types.ADD_ISSUE_TO_LIST, {
list,
issue: formatIssue({ ...res, id: getIdFromGraphQLId(res.id) }),
});
commit(types.REMOVE_ISSUE_FROM_LIST, { list, issue }); commit(types.REMOVE_ISSUE_FROM_LIST, { list, issue });
}) })
.catch(() => commit(types.ADD_ISSUE_TO_LIST_FAILURE, { list, issueId: issueInput.id })); .catch(() => commit(types.ADD_ISSUE_TO_LIST_FAILURE, { list, issueId: issueInput.id }));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment