fix(FE): adjust data types for project flock and product stock inventory

This commit is contained in:
randy-ar
2025-12-04 16:13:47 +07:00
parent dc6b0eaec6
commit e0a8514814
5 changed files with 18 additions and 15 deletions
@@ -221,7 +221,7 @@ const ProjectFlockDetail = ({
}}
>
{` ${formatCurrency(
projectFlock.project_budgets.reduce(
(projectFlock.project_budgets ?? []).reduce(
(acc, curr) => acc + curr.price * curr.qty,
0
)
@@ -236,7 +236,7 @@ const ProjectFlockDetail = ({
{/* Card List Project Budgets */}
{openBudgets &&
projectFlock.project_budgets.map((budget) => (
(projectFlock.project_budgets ?? []).map((budget) => (
<Card
key={budget.id}
variant='bordered'