mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
fix(FE): add depedency to useMemo rows data
This commit is contained in:
@@ -44,7 +44,7 @@ const ClosingFinanceTable = ({
|
|||||||
return [customItems, ...purchases, totalBudgeting, ...overheads];
|
return [customItems, ...purchases, totalBudgeting, ...overheads];
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
}, []);
|
}, [finance]);
|
||||||
|
|
||||||
const profitLossTableData: ProfitLossItem[] = useMemo(() => {
|
const profitLossTableData: ProfitLossItem[] = useMemo(() => {
|
||||||
if (isResponseSuccess(finance)) {
|
if (isResponseSuccess(finance)) {
|
||||||
@@ -78,7 +78,7 @@ const ClosingFinanceTable = ({
|
|||||||
return [...incomes, ...purchases, grossProfit, ...overheads, subtotal];
|
return [...incomes, ...purchases, grossProfit, ...overheads, subtotal];
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
}, []);
|
}, [finance]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='flex flex-col gap-4'>
|
<div className='flex flex-col gap-4'>
|
||||||
|
|||||||
Reference in New Issue
Block a user