From 3c97e96471de7bd4f71c29ee95ee84dc713880cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=96=87=E5=AF=8C?= Date: Thu, 13 Dec 2018 15:22:39 +0800 Subject: [PATCH] selectedRows is always an array (#3129) --- src/pages/List/TableList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/List/TableList.js b/src/pages/List/TableList.js index eed64c72..102cf858 100644 --- a/src/pages/List/TableList.js +++ b/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({ -- GitLab