1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00
This commit is contained in:
Adria Navarro 2023-09-25 12:40:12 +02:00
parent a175fb3293
commit a834402e16

View file

@ -72,10 +72,13 @@
const result = {
...optionsObj,
...(fetchResults || [])?.reduce((accumulator, row) => {
accumulator[row._id] = row
if (!optionsObj[row._id]) {
accumulator[row._id] = row
}
return accumulator
}, {}),
}
return Object.values(result)
}
$: {