mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-20 18:26:46 +10:00
remove typeof props.rowKey
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user