Fixed chart not working
This commit is contained in:
parent
f4f4debf7f
commit
c58b66dded
@ -87,13 +87,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PreviewControls from '@components/globals/PreviewControls.vue'
|
||||
import { playPausePreview } from '@components/globals/TheTrackPreview.vue'
|
||||
import { sendAddToQueue } from '@/utils/downloads'
|
||||
import { convertDuration } from '@/utils/utils'
|
||||
import { getChartsData, getChartTracks } from '@/data/charts'
|
||||
|
||||
import PreviewControls from '@components/globals/PreviewControls.vue'
|
||||
import { playPausePreview } from '@components/globals/TheTrackPreview.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
PreviewControls
|
||||
@ -131,18 +130,7 @@ export default {
|
||||
// socket.off('setChartTracks')
|
||||
// })
|
||||
|
||||
let { data: chartsData } = await getChartsData()
|
||||
let worldwideChart
|
||||
|
||||
chartsData = chartsData.filter(item => {
|
||||
if (item.title === 'Worldwide') {
|
||||
worldwideChart = item
|
||||
}
|
||||
|
||||
return item.title !== 'Worldwide'
|
||||
})
|
||||
chartsData.unshift(worldwideChart)
|
||||
|
||||
const { data: chartsData } = await getChartsData()
|
||||
this.initCharts(chartsData)
|
||||
},
|
||||
methods: {
|
||||
|
Loading…
Reference in New Issue
Block a user