Commit 6ae8b6b6 authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Kushal Pandya

Remove removeMilestone logic from issue model

parent 7b4340f1
...@@ -66,9 +66,7 @@ class ListIssue { ...@@ -66,9 +66,7 @@ class ListIssue {
} }
removeMilestone(removeMilestone) { removeMilestone(removeMilestone) {
if (IS_EE && removeMilestone && removeMilestone.id === this.milestone.id) { boardsStore.removeIssueMilestone(this, removeMilestone);
this.milestone = {};
}
} }
getLists() { getLists() {
......
...@@ -817,6 +817,12 @@ const boardsStore = { ...@@ -817,6 +817,12 @@ const boardsStore = {
issue.isFetching[key] = value; issue.isFetching[key] = value;
}, },
removeIssueMilestone(issue, removeMilestone) {
if (IS_EE && removeMilestone && removeMilestone.id === issue.milestone.id) {
issue.milestone = {};
}
},
refreshIssueData(issue, obj) { refreshIssueData(issue, obj) {
issue.id = obj.id; issue.id = obj.id;
issue.iid = obj.iid; 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