add: two new keys

This commit is contained in:
2026-02-18 15:45:51 +03:30
parent b3dde3c0ec
commit c55e1f907a

View File

@@ -38,7 +38,7 @@ export default function LiveStocks() {
? `/herd/web/api/v1/rancher/${farmid}/rancher_dashboard/`
: "/herd/web/api/v1/rancher/rancher_main_dashboard/",
queryKey: ["HerdsDashboard"],
}
},
);
const handleUpdate = () => {
@@ -156,6 +156,8 @@ export default function LiveStocks() {
"تعداد دام سنگین",
"تعداد دام سبک",
"مجموع وزن خرید از سهمیه ها",
"تعداد دام های فعال",
"تعداد دام های غیرفعال",
"جزئیات",
]
: [
@@ -186,6 +188,10 @@ export default function LiveStocks() {
"0",
DashboardData?.total_purchase_weight?.toLocaleString() ||
"0",
DashboardData?.total_active_livestock_count?.toLocaleString() ||
"0",
DashboardData?.total_deactive_livestock_count?.toLocaleString() ||
"0",
<TableButton
size="small"
key={DashboardData}