mirror of
https://github.com/simon987/music-graph-ui.git
synced 2025-04-19 10:06:42 +00:00
hotfix for tags
This commit is contained in:
parent
779d33901b
commit
cf4e52749e
@ -117,21 +117,21 @@ export function MusicGraphApi(data) {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
this._filterTags = loadWrapper((tags) => {
|
this._filterTags = tags => {
|
||||||
if (ONLY_GENRE_TAGS) {
|
if (ONLY_GENRE_TAGS) {
|
||||||
return tags.filter(tag => genres.has(tag.name))
|
return tags.filter(tag => genres.has(tag.name))
|
||||||
} else if (IGNORE_DATES_TAG) {
|
} else if (IGNORE_DATES_TAG) {
|
||||||
return tags.filter(tag => isNaN(tag.name) && isNaN(tag.name.slice(0, -1)))
|
return tags.filter(tag => isNaN(tag.name) && isNaN(tag.name.slice(0, -1)))
|
||||||
}
|
}
|
||||||
return tags
|
return tags
|
||||||
})
|
}
|
||||||
|
|
||||||
this._addTagLabel = loadWrapper((objects) => {
|
this._addTagLabel = (objects) => {
|
||||||
return objects.map(tag => {
|
return objects.map(tag => {
|
||||||
tag.labels = ['Tag']
|
tag.labels = ['Tag']
|
||||||
return tag
|
return tag
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
|
|
||||||
this.getArtistTags = loadWrapper((mbid, originId) => {
|
this.getArtistTags = loadWrapper((mbid, originId) => {
|
||||||
return d3.json(this.url + '/artist/details/' + mbid)
|
return d3.json(this.url + '/artist/details/' + mbid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user