fix(components): update pairing selector

ensure that `undefined` isn't being pushed to the character options array
This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2024-11-11 18:09:43 -05:00
parent e5fad9f100
commit a3fc1d0f9b
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -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 }));
});