diff --git a/src/figma-make/components/pages/list-daily-checklist/ListDailyChecklistContent.tsx b/src/figma-make/components/pages/list-daily-checklist/ListDailyChecklistContent.tsx index 64f716c1..c212edc5 100644 --- a/src/figma-make/components/pages/list-daily-checklist/ListDailyChecklistContent.tsx +++ b/src/figma-make/components/pages/list-daily-checklist/ListDailyChecklistContent.tsx @@ -160,13 +160,7 @@ export function ListDailyChecklistContent() { }; const handleEdit = (item: DailyChecklist) => { - const formattedDate = new Date(item.date).toISOString().split('T')[0]; - const kandangId = item.kandang?.id ?? ''; - const category = item.category; - - router.push( - `/daily-checklist/daily-checklist?date=${formattedDate}&kandang_id=${kandangId}&category=${category}` - ); + router.push(`/daily-checklist/daily-checklist?checklistId=${item.id}`); }; const handleApprove = (item: DailyChecklist) => {