Skip to content

Commit e67dd9d

Browse files
committed
2321: Added fallback values
1 parent 124934d commit e67dd9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/util/forms/checkbox-options.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { React } from "react";
22

33
function CheckboxOptions({formData, data, onChange}) {
4-
const values = data[formData.name];
4+
const values = data[formData.name] ?? [];
55

66
const containsValue = (value) => {
77
return values.includes(value);

0 commit comments

Comments
 (0)