Commit 5a04be1f authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch 'euko-fix-boards-getter-name' into 'master'

Rename getActiveIssue to activeIssue

See merge request gitlab-org/gitlab!47194
parents ef62291f 39b67a82
...@@ -316,14 +316,14 @@ export default { ...@@ -316,14 +316,14 @@ export default {
.mutate({ .mutate({
mutation: updateAssignees, mutation: updateAssignees,
variables: { variables: {
iid: getters.getActiveIssue.iid, iid: getters.activeIssue.iid,
projectPath: getters.getActiveIssue.referencePath.split('#')[0], projectPath: getters.activeIssue.referencePath.split('#')[0],
assigneeUsernames, assigneeUsernames,
}, },
}) })
.then(({ data }) => { .then(({ data }) => {
commit('UPDATE_ISSUE_BY_ID', { commit('UPDATE_ISSUE_BY_ID', {
issueId: getters.getActiveIssue.id, issueId: getters.activeIssue.id,
prop: 'assignees', prop: 'assignees',
value: data.issueSetAssignees.issue.assignees.nodes, value: data.issueSetAssignees.issue.assignees.nodes,
}); });
......
...@@ -646,7 +646,7 @@ describe('setAssignees', () => { ...@@ -646,7 +646,7 @@ describe('setAssignees', () => {
it('calls mutate with the correct values', async () => { it('calls mutate with the correct values', async () => {
await actions.setAssignees( await actions.setAssignees(
{ commit: () => {}, getters: { getActiveIssue: { iid, referencePath: refPath } } }, { commit: () => {}, getters: { activeIssue: { iid, referencePath: refPath } } },
[name], [name],
); );
...@@ -660,7 +660,7 @@ describe('setAssignees', () => { ...@@ -660,7 +660,7 @@ describe('setAssignees', () => {
testAction( testAction(
actions.setAssignees, actions.setAssignees,
{}, {},
{ getActiveIssue: { iid, referencePath: refPath }, commit: () => {} }, { activeIssue: { iid, referencePath: refPath }, commit: () => {} },
[ [
{ {
type: 'UPDATE_ISSUE_BY_ID', type: 'UPDATE_ISSUE_BY_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