Various fixes to resolve warnings

Removed redundant function for playlists (Handling large descriptions needs to be done, either through keeping how its currently done or using a model popup)
This commit is contained in:
Core 2022-01-14 18:02:20 +00:00
parent 3f51b05a1a
commit 90d2d5d74e
No known key found for this signature in database
GPG key ID: 1B77805746C47C28
4 changed files with 50 additions and 62 deletions

View file

@ -140,9 +140,10 @@
}
},
async getBadges() {
let self = this
if (this.badges[this.item.attributes.playParams.id ?? this.item.id]) {
let friends = this.badges[this.item.attributes.playParams.id ?? this.item.id]
const self = this
const id = (this.item.attributes.playParams ? this.item.attributes.playParams.id : null) || this.item.id
if (id && this.badges[id]) {
let friends = this.badges[id]
if (friends) {
friends.forEach(function (friend) {
self.app.mk.api.socialProfile(friend).then(data => {