Fix duration in radios

This commit is contained in:
wvffle 2022-07-24 20:57:36 +00:00 committed by Georg Krause
parent c87bf7e6b8
commit 476f0ee06d
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ const queueItems = computed(() => tracks.value.map((track, index) => ({
remove: $pgettext('*/*/*', 'Remove'),
selectTrack: $pgettext('*/*/*', 'Select track')
},
duration: time.durationFormatted(track.uploads[0].duration ?? 0) ?? ''
duration: time.durationFormatted(track.uploads[0]?.duration ?? 0) ?? ''
}) as QueueItemSource))
const reorderTracks = async (from: number, to: number) => {