Update artist-chip.ejs

This commit is contained in:
booploops 2022-03-24 06:51:07 -07:00
parent c238591d6c
commit 3697bd559c

View file

@ -29,7 +29,7 @@
template: '#artist-chip',
async mounted() {
let artistId = this.item.id
if(typeof this.item.relationships.catalog == "object") {
if(typeof this.item.relationships == "object") {
artistId = this.item.relationships.catalog.data[0].id
}
app.mk.api.v3.music(`/v1/catalog/${app.mk.storefrontId}/artists/${artistId}`).then(response => {