diff --git a/src/components/ThreeViewer/Scene.jsx b/src/components/ThreeViewer/Scene.jsx index 290d530..a05450d 100644 --- a/src/components/ThreeViewer/Scene.jsx +++ b/src/components/ThreeViewer/Scene.jsx @@ -19,8 +19,6 @@ const Scene = ({ geometries, simulationMeshes, setSimulationMeshes, - selectedPVSystem, - setSelectedPVSystem, vegetationGeometries, geoLocation, }) => { @@ -32,6 +30,8 @@ const Scene = ({ const [pvPoints, setPVPoints] = useState([]) // highlighted meshes for resimulation const [selectedMesh, setSelectedMesh] = useState([]) + // highlighted PVSystems for deletion or calculation + const [selectedPVSystem, setSelectedPVSystem] = useState([]) window.setPVPoints = setPVPoints const position = [ diff --git a/src/pages/Simulation.jsx b/src/pages/Simulation.jsx index 597421f..1ec692e 100644 --- a/src/pages/Simulation.jsx +++ b/src/pages/Simulation.jsx @@ -27,8 +27,6 @@ function Index() { background: [], }) - // highlighted PVSystems for deletion or calculation - const [selectedPVSystem, setSelectedPVSystem] = useState([]) // meshes that were simulated const [simulationMeshes, setSimulationMeshes] = useState([]) @@ -63,8 +61,6 @@ function Index() { geometries={geometries} simulationMeshes={simulationMeshes} setSimulationMeshes={setSimulationMeshes} - selectedPVSystem={selectedPVSystem} - setSelectedPVSystem={setSelectedPVSystem} vegetationGeometries={vegetationGeometries} geoLocation={location} />