From a3fc1d0f9b7bf3e77b9589153e1746232e1128e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Mon, 11 Nov 2024 18:09:43 -0500 Subject: [PATCH] fix(components): update pairing selector ensure that `undefined` isn't being pushed to the character options array --- components/story/atoms/pairings.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/story/atoms/pairings.vue b/components/story/atoms/pairings.vue index adeb4af..0973b6f 100644 --- a/components/story/atoms/pairings.vue +++ b/components/story/atoms/pairings.vue @@ -8,7 +8,7 @@ const opts = computed(() => { const uf: any[] = []; selectedBands.value.forEach((v: number) => { - uf.push(allBands?.value.find((a) => a._id == v)?.characters); + uf.push(allBands?.value.find((a) => a._id == v)?.characters ?? []); }); return uf.flat(Infinity).map((a) => ({ value: a, label: a })); });