From 7d4d28d51c7bf49c92b05d9a9957fdb21471f72e Mon Sep 17 00:00:00 2001 From: lijingchi Date: Wed, 22 Mar 2023 19:08:00 +0800 Subject: [PATCH] fix(pointcloud): Fix attribute list hide attr fail --- .../src/components/pointCloudView/PointCloudContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });