diff --git a/src/app/production/chickin/add/page.tsx b/src/app/production/chickin/add/page.tsx index af834b37..3ef73396 100644 --- a/src/app/production/chickin/add/page.tsx +++ b/src/app/production/chickin/add/page.tsx @@ -141,8 +141,8 @@ const AddChickin = () => { options={options} isLoading={isLoadingListProjectFlock} value={{ - label: `${projectFlock.data.flock.name} - ${projectFlock.data.category} - Periode ${projectFlock.data.period}`, - value: projectFlock.data.id, + label: `${projectFlock.data?.flock?.name} - ${projectFlock.data?.category} - Periode ${projectFlock.data?.period}`, + value: projectFlock.data?.id, }} onChange={(val) => router.push( @@ -159,7 +159,7 @@ const AddChickin = () => {