Commit f562599a authored by Florie Guibert's avatar Florie Guibert

Swimlanes - Fix id format of newly created issue

parent 111239ad
...@@ -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