From 5616c9f066dd5019d32a40c74fd99d1529f860ce Mon Sep 17 00:00:00 2001 From: wvffle Date: Fri, 28 Oct 2022 21:07:02 +0000 Subject: [PATCH] Ensure we do not get undefineds from indexedDB --- front/src/composables/audio/queue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/composables/audio/queue.ts b/front/src/composables/audio/queue.ts index a589847bf..81b4d4109 100644 --- a/front/src/composables/audio/queue.ts +++ b/front/src/composables/audio/queue.ts @@ -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) {