We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 124934d commit e67dd9dCopy full SHA for e67dd9d
src/components/util/forms/checkbox-options.jsx
@@ -1,7 +1,7 @@
1
import { React } from "react";
2
3
function CheckboxOptions({formData, data, onChange}) {
4
- const values = data[formData.name];
+ const values = data[formData.name] ?? [];
5
6
const containsValue = (value) => {
7
return values.includes(value);
0 commit comments