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