use filter array function
This commit is contained in:
parent
7885955344
commit
84b6ff9f99
|
@ -260,10 +260,7 @@ const Status = {
|
|||
return this.status.summary_html + '<br />' + 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')
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue