From 3fedbc7ffb1172c428a8c24688afd935f933cad3 Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Mon, 13 Apr 2026 10:58:33 +0700 Subject: [PATCH] fix: adjust showEditButton condition --- .../pages/production/project-flock/ProjectFlockTable.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/pages/production/project-flock/ProjectFlockTable.tsx b/src/components/pages/production/project-flock/ProjectFlockTable.tsx index bdc271a6..17d5227b 100644 --- a/src/components/pages/production/project-flock/ProjectFlockTable.tsx +++ b/src/components/pages/production/project-flock/ProjectFlockTable.tsx @@ -59,8 +59,7 @@ const RowOptionsMenu = ({ detailClickHandler: (id: number) => void; deleteClickHandler: () => void; }) => { - // TODO: change this to real condition - const showEditButton = true; + const showEditButton = props.row.original.approval?.step_number !== 2; const showDeleteButton = showEditButton;