Refactor: Update useEffect dependencies to include activeLayer for ReferenceAisle, ReferenceFloor, ReferenceWall; enhance usePointSnapping with zone snapping functionality and add ReferenceZone component for zone management
This commit is contained in:
@@ -82,7 +82,7 @@ function ReferenceWall({ tempPoints }: Readonly<ReferenceWallProps>) {
|
||||
|
||||
useEffect(() => {
|
||||
setTempWall(null);
|
||||
}, [toolMode, toggleView, tempPoints.length, wallHeight, wallThickness]);
|
||||
}, [toolMode, toggleView, tempPoints.length, wallHeight, wallThickness, activeLayer]);
|
||||
|
||||
if (!tempWall) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user