Browse Source

selectedRows is always an array (#3129)

李文富 7 năm trước cách đây
mục cha
commit
3c97e96471
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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({