Explorar o código

selectedRows is always an array (#3129)

李文富 %!s(int64=7) %!d(string=hai) anos
pai
achega
3c97e96471
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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({