fixing error
This commit is contained in:
parent
6ac02ba0a9
commit
459425a309
|
|
@ -301,7 +301,7 @@ export default function DetailDaily() {
|
||||||
const handleItemCheckedChange = (id: string, checked: boolean | string) => {
|
const handleItemCheckedChange = (id: string, checked: boolean | string) => {
|
||||||
form.setValue(
|
form.setValue(
|
||||||
"output",
|
"output",
|
||||||
checked ? [...output, id] : output.filter((value) => value !== id)
|
checked ? [...(output ?? []), id] : (output ?? []).filter((value) => value !== id)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue