Unhandled Runtime Error
TypeError: items is undefined
Source
components/Inputs/Checkbox/Checkbox.js (16:36) @ updateCheckedState
14 | if (e.target.checked) {
15 | const nameOrLabel = label ?? name;
> 16 | setCurrentlyChecked([...Array.from(currentlyChecked), { // normally an object array
| ^
17 | label: nameOrLabel,
18 | value
19 | }]);
I guess this solution to coerce undefined to an empty array is not working. Anyone know a fix?