fix: use project flock kandang ID instead kandang ID and use kandang name with period for kandang options in filter

This commit is contained in:
ValdiANS
2026-04-16 10:17:07 +07:00
parent 11353809f0
commit 192a2be8b9
@@ -173,8 +173,8 @@ const DashboardProduction = () => {
loadMore: loadMoreKandang, loadMore: loadMoreKandang,
} = useSelect<ProjectFlockKandang>( } = useSelect<ProjectFlockKandang>(
ProjectFlockKandangApi.basePath, ProjectFlockKandangApi.basePath,
'kandang_id', 'id',
'kandang.name', 'name_with_period',
'search', 'search',
{ {
location_id: location_id:
@@ -362,7 +362,7 @@ const DashboardProduction = () => {
</div> </div>
{/* Hidden container for all charts (used for PDF export in OVERVIEW mode) */} {/* Hidden container for all charts (used for PDF export in OVERVIEW mode) */}
{dashboardProductionData && ( {exporting && dashboardProductionData && (
<> <>
{/* Export Stats Charts */} {/* Export Stats Charts */}
<div <div