소스 검색

selectedRows is always an array (#3129)

李文富 7 년 전
부모
커밋
3c97e96471
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/pages/List/TableList.js

+ 1 - 1
src/pages/List/TableList.js

@@ -405,7 +405,7 @@ class TableList extends PureComponent {
     const { dispatch } = this.props;
     const { selectedRows } = this.state;
 
-    if (!selectedRows) return;
+    if (selectedRows.length === 0) return;
     switch (e.key) {
       case 'remove':
         dispatch({