fix: assign select
This commit is contained in:
parent
96759bac24
commit
389995ad76
1 changed files with 1 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ function assignSelect(to: unknown[], from: unknown[]) {
|
|||
to.splice(i, 1);
|
||||
}
|
||||
}
|
||||
to.sort((a, b) => from.indexOf(a) - from.indexOf(b));
|
||||
|
||||
const newItems = from.filter((item) => !existingItems.has(item));
|
||||
to.push(...newItems);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue