From 1023e442632a75064dfb6489594fb3e7bdfb4936 Mon Sep 17 00:00:00 2001 From: kelvinsuen Date: Tue, 14 Oct 2025 15:37:49 +0800 Subject: [PATCH] update esc log table --- .../DashboardPage/escalation/EscalationLogTable.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/DashboardPage/escalation/EscalationLogTable.tsx b/src/components/DashboardPage/escalation/EscalationLogTable.tsx index 83a6417..17c3fa2 100644 --- a/src/components/DashboardPage/escalation/EscalationLogTable.tsx +++ b/src/components/DashboardPage/escalation/EscalationLogTable.tsx @@ -65,7 +65,9 @@ const EscalationLogTable: React.FC = ({ ); const onRowClick = useCallback((item: EscalationResult) => { - router.push(`/po/edit?id=${item.poId}&selectedIds=${item.poId}&polId=${item.polId}&stockInLineId=${item.stockInLineId}`); + if (type == "dashboard") { + router.push(`/po/edit?id=${item.poId}&selectedIds=${item.poId}&polId=${item.polId}&stockInLineId=${item.stockInLineId}`); + } }, [router]) // const handleKeyDown = useCallback(