Commit 72e885dd authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'Remove-removeMilestone-logic-from-issue-model' into 'master'

Remove removeMilestone logic from issue model

See merge request gitlab-org/gitlab!32253
parents b9baf938 6ae8b6b6
......@@ -66,9 +66,7 @@ class ListIssue {
}
removeMilestone(removeMilestone) {
if (IS_EE && removeMilestone && removeMilestone.id === this.milestone.id) {
this.milestone = {};
}
boardsStore.removeIssueMilestone(this, removeMilestone);
}
getLists() {
......
......@@ -817,6 +817,12 @@ const boardsStore = {
issue.isFetching[key] = value;
},
removeIssueMilestone(issue, removeMilestone) {
if (IS_EE && removeMilestone && removeMilestone.id === issue.milestone.id) {
issue.milestone = {};
}
},
refreshIssueData(issue, obj) {
issue.id = obj.id;
issue.iid = obj.iid;
......
---
title: Remove removeMilestone logic from issue model
merge_request: 32253
author: nuwe1
type: other
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