Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobesson committed Apr 24, 2021
1 parent f37ffbf commit 9de97de
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/views/document/utils/boxes/RecentOutingsBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<router-link
:to="{ name: 'outings', query: query }"
class="button is-primary"
v-if="outings.length && !hideSeeAllResultsButton"
v-if="!hideSeeAllResultsButton && outings.length"
>
<span v-translate>show all</span>&nbsp;<span class="badge">{{ totalOutings }}</span>
</router-link>
Expand Down Expand Up @@ -44,8 +44,9 @@ export default {
computed: {
outings() {
const outings = this.document.associations.recent_outings?.documents || this.document.associations.outings;
return outings.filter((outing) => outing.quality !== 'empty');
return (this.document.associations.recent_outings?.documents || this.document.associations.outings).filter(
(outing) => outing.quality !== 'empty'
);
},
totalOutings() {
Expand Down

0 comments on commit 9de97de

Please sign in to comment.