From a243d32dff46575aec29ae4970eff76dba830b74 Mon Sep 17 00:00:00 2001 From: RaoHai Date: Thu, 2 Jun 2016 16:15:19 +0800 Subject: [PATCH] remove typeof props.rowKey --- components/transfer/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/transfer/index.jsx b/components/transfer/index.jsx index c3570ce64d..9167345542 100644 --- a/components/transfer/index.jsx +++ b/components/transfer/index.jsx @@ -65,7 +65,7 @@ export default class Transfer extends React.Component { const { targetKeys } = props; let { dataSource } = props; - if (props.rowKey && typeof props.rowKey === 'function') { + if (props.rowKey) { dataSource = dataSource.map(record => { record.key = props.rowKey(record); return record;