first building expanded by default
This commit is contained in:
parent
78894918c0
commit
18d6916fb8
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user