Fixed chart not working

This commit is contained in:
RemixDev 2022-04-27 17:31:34 +02:00
parent f4f4debf7f
commit c58b66dded

View File

@ -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: {