fixing error

This commit is contained in:
hanif salafi 2025-07-24 13:45:12 +07:00
parent 6ac02ba0a9
commit 459425a309
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ export default function DetailDaily() {
const handleItemCheckedChange = (id: string, checked: boolean | string) => {
form.setValue(
"output",
checked ? [...output, id] : output.filter((value) => value !== id)
checked ? [...(output ?? []), id] : (output ?? []).filter((value) => value !== id)
);
};