diff --git a/packages/lb-components/src/components/pointCloudView/PointCloudContext.tsx b/packages/lb-components/src/components/pointCloudView/PointCloudContext.tsx index 8a02d8cc4..8243d3c7d 100644 --- a/packages/lb-components/src/components/pointCloudView/PointCloudContext.tsx +++ b/packages/lb-components/src/components/pointCloudView/PointCloudContext.tsx @@ -177,7 +177,7 @@ export const PointCloudProvider: React.FC<{}> = ({ children }) => { _displayPointCloudList: IPointCloudBoxList = displayPointCloudList, _polygonList: IPolygonData[] = polygonList, ) => { - _displayPointCloudList.forEach((v) => { + pointCloudBoxList.forEach((v) => { mainViewInstance?.removeObjectByName(v.id); });