Fix UX
This commit is contained in:
parent
a175fb3293
commit
a834402e16
|
@ -72,10 +72,13 @@
|
||||||
const result = {
|
const result = {
|
||||||
...optionsObj,
|
...optionsObj,
|
||||||
...(fetchResults || [])?.reduce((accumulator, row) => {
|
...(fetchResults || [])?.reduce((accumulator, row) => {
|
||||||
|
if (!optionsObj[row._id]) {
|
||||||
accumulator[row._id] = row
|
accumulator[row._id] = row
|
||||||
|
}
|
||||||
return accumulator
|
return accumulator
|
||||||
}, {}),
|
}, {}),
|
||||||
}
|
}
|
||||||
|
|
||||||
return Object.values(result)
|
return Object.values(result)
|
||||||
}
|
}
|
||||||
$: {
|
$: {
|
||||||
|
|
Loading…
Reference in New Issue