mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
Some fixes
This commit is contained in:
parent
060b53bde0
commit
1d1fe47c0b
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
|||
const _selectedValues = writable(selectedValues);
|
||||
|
||||
function newArray(value, selected) {
|
||||
let a = $_selectedValues;
|
||||
let a = [...$_selectedValues];
|
||||
const i = a.indexOf(value);
|
||||
if (selected && i === -1) {
|
||||
a = a.push([value]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue