mirror of
https://github.com/simon987/music-graph-ui.git
synced 2025-04-04 06:52:58 +00:00
Bugfix, remove console print
This commit is contained in:
parent
927072e6aa
commit
1becd1d015
@ -64,6 +64,7 @@
|
||||
<script>
|
||||
import AlbumCarousel from './AlbumCarousel'
|
||||
import {isGenreTag} from '../genres'
|
||||
import _ from 'lodash'
|
||||
|
||||
export default {
|
||||
name: 'ArtistInfo',
|
||||
@ -95,10 +96,10 @@ export default {
|
||||
this.artistInfo.releases = this.artistInfo.releases
|
||||
.sort((a, b) => a.year - b.year)
|
||||
.filter(r => r.labels.indexOf('Album') !== -1 || r.labels.indexOf('EP') !== -1)
|
||||
this.artistInfo.tags = info.tags.sort((a, b) => b.weight - a.weight).splice(0, 99).map(t => {
|
||||
this.artistInfo.tags = _.uniqBy(info.tags.sort((a, b) => b.weight - a.weight).splice(0, 99).map(t => {
|
||||
t.type = isGenreTag(t.name, t.tagid) ? '' : 'info'
|
||||
return t
|
||||
})
|
||||
}), 'name')
|
||||
|
||||
if (this.artistInfo.tracks.length > 0) {
|
||||
const randSong = this.artistInfo.tracks[Math.floor(Math.random() * this.artistInfo.tracks.length)]
|
||||
|
@ -10,7 +10,6 @@ window.addEventListener('keydown', e => {
|
||||
if (e.key === 'ArrowDown') {
|
||||
INITIAL_DISTANCE -= 10
|
||||
}
|
||||
console.log(INITIAL_DISTANCE)
|
||||
})
|
||||
|
||||
export default {
|
||||
|
Loading…
x
Reference in New Issue
Block a user