Commit 58c181f6 authored by jboyson's avatar jboyson

Fix faulty logic. Return shouldRemoveSourceBranch when true

parent f6325145
......@@ -73,7 +73,7 @@ export default {
shouldRemoveSourceBranch() {
if (this.glFeatures.mergeRequestWidgetGraphql) {
if (this.state.shouldRemoveSourceBranch === false) return false;
return this.state.forceRemoveSourceBranch;
return this.state.shouldRemoveSourceBranch || this.state.forceRemoveSourceBranch;
}
return this.mr.shouldRemoveSourceBranch;
......
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