Commit a7696b22 authored by Filipa Lacerda's avatar Filipa Lacerda
Browse files

Fix broken test

parent 87669801ee19
......@@ -7,6 +7,7 @@
relatedLinks: {
type: Object,
required: true,
default: () => ({}),
},
state: {
type: String,
......@@ -33,7 +34,7 @@
{{ closesText }} <span v-html="relatedLinks.closing"></span>
</p>
<p v-if="relatedLinks.mentioned">
Mentions <span v-html="relatedLinks.mentioned"></span>
{{ s__("mrWidget|Mentions") }} <span v-html="relatedLinks.mentioned"></span>
</p>
<p v-if="relatedLinks.assignToMe">
<span v-html="relatedLinks.assignToMe"></span>
......
......@@ -63,8 +63,7 @@ export default {
return this.mr.hasCI;
},
shouldRenderRelatedLinks() {
const { closing, mentioned, assignToMe } = this.mr.relatedLinks;
return (closing || mentioned || assignToMe) && !this.mr.isNothingToMergeState;
return !!this.mr.relatedLinks && !this.mr.isNothingToMergeState;
},
shouldRenderDeployments() {
return this.mr.deployments.length;
......
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