From 84b6ff9f997e114a91621d3fb77699378d7da194 Mon Sep 17 00:00:00 2001 From: Brenden Bice Date: Sat, 6 Apr 2019 14:35:18 -0400 Subject: [PATCH] use filter array function --- src/components/status/status.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/status/status.js b/src/components/status/status.js index 6d1f110af4..44caf3af3c 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -260,10 +260,7 @@ const Status = { return this.status.summary_html + '
' + this.status.statusnet_html }, combinedFavsAndRepeatsAvatars () { - const combinedAvatars = [].concat( - this.statusoid.favoritedBy ? this.statusoid.favoritedBy : [], - this.statusoid.rebloggedBy ? this.statusoid.rebloggedBy : [] - ) + const combinedAvatars = [].concat(this.statusoid.favoritedBy, this.statusoid.rebloggedBy).filter(_ => _) return uniqBy(combinedAvatars, 'id') } },