diff --git a/app/[locale]/(protected)/curator/task-plan/mediahub/create-daily/detail/[id]/page.tsx b/app/[locale]/(protected)/curator/task-plan/mediahub/create-daily/detail/[id]/page.tsx index bfac22e5..253f3137 100644 --- a/app/[locale]/(protected)/curator/task-plan/mediahub/create-daily/detail/[id]/page.tsx +++ b/app/[locale]/(protected)/curator/task-plan/mediahub/create-daily/detail/[id]/page.tsx @@ -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) ); };