fix(components): update pairing selector
ensure that `undefined` isn't being pushed to the character options array
This commit is contained in:
parent
e5fad9f100
commit
a3fc1d0f9b
@ -8,7 +8,7 @@
|
|||||||
const opts = computed(() => {
|
const opts = computed(() => {
|
||||||
const uf: any[] = [];
|
const uf: any[] = [];
|
||||||
selectedBands.value.forEach((v: number) => {
|
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 }));
|
return uf.flat(Infinity).map((a) => ({ value: a, label: a }));
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user