Procházet zdrojové kódy

selectedRows is always an array (#3129)

李文富 před 7 roky
rodič
revize
3c97e96471
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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({