Commit 86ba2909 authored by Kev's avatar Kev

Move $emit in header.vue changeVulnerabilityState

parent 03e88e9e
......@@ -126,6 +126,7 @@ export default {
Api.changeVulnerabilityState(this.vulnerability.id, newState)
.then(({ data }) => {
Object.assign(this.vulnerability, data);
this.$emit('vulnerability-state-change');
})
.catch(() => {
createFlash(
......@@ -136,7 +137,6 @@ export default {
})
.finally(() => {
this.isLoadingVulnerability = false;
this.$emit('vulnerability-state-change', newState);
});
},
createMergeRequest() {
......
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