Commit 514826f5 authored by Filipa Lacerda's avatar Filipa Lacerda

Fix broken test

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