Lichtwerkstatt / XRTL_SPA

Single Page Application for XRTL Remote Lab
https://xrtl.uni-jena.de/
GNU Affero General Public License v3.0
2 stars 3 forks source link

Window rendering list problem #135

Closed FalkoFuroro closed 8 months ago

FalkoFuroro commented 8 months ago

The function toggleSelectedComp is not working well within the 2D-view. The list selectedComps seems to be not updated in every step.

Warning: Very confusing description of a problem that is not understood, may contain nuts.

CanonDieCamera commented 8 months ago

Bracket for adding components to selectedComps were at wrong position. setSelectedComps(prev => new Set(prev.add(compId))); to setSelectedComps(prev => new Set(prev).add(compId)); Same for roomComponents