first building expanded by default

This commit is contained in:
Pramod Mahajan 2025-06-10 18:20:15 +05:30
parent 78894918c0
commit 18d6916fb8

View File

@ -110,7 +110,6 @@ const InfraTable = ({ buildings }) => {
useEffect(() => {
if (buildings && buildings.length > 0) {
setProjectBuilding(buildings);
// Automatically expand the first building
setExpandedBuildings([buildings[0].id]);
}
}, [buildings]);