From 3b2c42cde088ca541f540c3bb92d07178804d3d9 Mon Sep 17 00:00:00 2001 From: Original-Recipe-Chicken Date: Fri, 1 Nov 2024 17:53:46 +0800 Subject: [PATCH] fix: Types issue --- .../pointCloudView/components/UnifyParamsModal/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/lb-components/src/components/pointCloudView/components/UnifyParamsModal/index.tsx b/packages/lb-components/src/components/pointCloudView/components/UnifyParamsModal/index.tsx index ef09dcaa..1765b8f8 100644 --- a/packages/lb-components/src/components/pointCloudView/components/UnifyParamsModal/index.tsx +++ b/packages/lb-components/src/components/pointCloudView/components/UnifyParamsModal/index.tsx @@ -18,7 +18,7 @@ interface IProps { onCancel: () => void; config: IPointCloudConfig; imgList: AnnotationFileList; - imgIndex?: number; + imgIndex: number; } const layout = { @@ -279,7 +279,6 @@ const UnifyParamsModal = ({ id, visible, onCancel, config, imgList, imgIndex }: const mapStateToProps = (state: AppState) => { return { imgIndex: state.annotation.imgIndex, - ...state, }; };