Ensure we do not get undefineds from indexedDB

This commit is contained in:
wvffle 2022-10-28 21:07:02 +00:00 committed by Georg Krause
parent 34d4f3b25b
commit 5616c9f066
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ watchEffect(async () => {
fetchingTracks.value = true
try {
const trackInfos: QueueTrack[] = await getMany([...addedIds])
for (const track of trackInfos) {
for (const track of trackInfos.filter(i => i)) {
tracksById.set(track.id, track)
}
} catch (error) {