From d0c3581f578572dc7f7b788d3563ff8efc60984a Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Mon, 11 May 2026 16:51:14 +0700 Subject: [PATCH] fix: use checklistId param instead of date, kandang_id, and category when redirecting for edit --- .../list-daily-checklist/ListDailyChecklistContent.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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) => {