소스 검색

bug:自动选中失败后,提示信息不自动消失

sw 1 주 전
부모
커밋
dd9de0c240
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/pages/exam/components/BodyPositionList.tsx

+ 1 - 2
src/pages/exam/components/BodyPositionList.tsx

@@ -77,8 +77,7 @@ const BodyPositionList: React.FC<BodyPositionListProps> = ({
       autoSelectFirstBodyPosition(bodyPositions, dispatch, currentKey).catch(
         (error) => {
           message.error(
-            'Failed to auto-select the first body position',
-            error
+            `Failed to auto-select the first body position ${error}`
           );
         }
       );