Some fixes

This commit is contained in:
Richard O'flynn 2020-11-30 22:02:44 +00:00
commit d8741808e5

View file

@ -1,7 +1,7 @@
<script>
/**
* Specify the selected tile's
* @type {string}
* @type {string[]}
*/
export let selectedValues = [];
@ -26,7 +26,7 @@
if (selected && i === -1) {
a = a.concat([value]);
} else if (!selected && i > -1) {
a = a.splice(index, 1);
a = a.splice(i, 1);
}
return a;
}