Browse Source

selectedRows is always an array (#3129)

李文富 7 years ago
parent
commit
3c97e96471
1 changed files with 1 additions and 1 deletions
  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({