Skip to content

Commit e4213af

Browse files
committed
feat: type saftey
1 parent 622c972 commit e4213af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/core/src/components/product/bundles/ProductComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function CheckboxComponentOption({
126126
control={form.control}
127127
name={`selectedOptions.${componentKey}`}
128128
render={({ field }) => {
129-
const checked = isChecked(field.value, option.id!);
129+
const checked = isChecked(field.value || [], option.id!);
130130
return (
131131
<FormItem
132132
key={`selectedOptions.${componentKey}`}

0 commit comments

Comments
 (0)