From 9de97de56446e0c4065561bbae6aaf1c3b67bfca Mon Sep 17 00:00:00 2001 From: Bruno Besson Date: Sat, 24 Apr 2021 22:49:27 +0200 Subject: [PATCH] PR feedback --- src/views/document/utils/boxes/RecentOutingsBox.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/document/utils/boxes/RecentOutingsBox.vue b/src/views/document/utils/boxes/RecentOutingsBox.vue index 38e95c1b3d..53b5db6d04 100644 --- a/src/views/document/utils/boxes/RecentOutingsBox.vue +++ b/src/views/document/utils/boxes/RecentOutingsBox.vue @@ -16,7 +16,7 @@ show all {{ totalOutings }} @@ -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() {