From 333dd01f924fa790bc0702b6dfc50f864c6f41a3 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Thu, 5 Mar 2026 15:33:50 +0700 Subject: [PATCH] refactor(FE): Fix dependency array in useMemo for SalesClosingTable --- .../pages/closing/table/SalesClosingTable.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/pages/closing/table/SalesClosingTable.tsx b/src/components/pages/closing/table/SalesClosingTable.tsx index 5105d965..e362f1e0 100644 --- a/src/components/pages/closing/table/SalesClosingTable.tsx +++ b/src/components/pages/closing/table/SalesClosingTable.tsx @@ -308,7 +308,16 @@ const SalesClosingTable = ({ projectFlockId }: SalesClosingTableProps) => { // }, // }, ], - [] + [ + summary, + totals.avgActualPrice, + totals.avgSalesPrice, + totals.avgWeight, + totals.totalActualPrice, + totals.totalQuantity, + totals.totalSalesPrice, + totals.totalWeight, + ] ); return (