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 1b0bf930..bc3e5de7 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 @@ -542,14 +542,14 @@ export default function DetailDaily() { id={list.id} name={`all${list.id}`} checked={ - unit.includes("2") + unit?.includes("2") ?? false ? true : !!selected[list.id] } onCheckedChange={() => handleParentChange(list.id) } - disabled={unit.includes("2")} + disabled={unit?.includes("2") ?? false} />