From 459425a3092ab64b8ff6d816a535a1e5c5946e50 Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Thu, 24 Jul 2025 13:45:12 +0700 Subject: [PATCH] fixing error --- .../task-plan/mediahub/create-daily/detail/[id]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ); };