mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
remove typeof props.rowKey
This commit is contained in:
parent
d0532db3d7
commit
a243d32dff
@ -65,7 +65,7 @@ export default class Transfer extends React.Component {
|
|||||||
const { targetKeys } = props;
|
const { targetKeys } = props;
|
||||||
let { dataSource } = props;
|
let { dataSource } = props;
|
||||||
|
|
||||||
if (props.rowKey && typeof props.rowKey === 'function') {
|
if (props.rowKey) {
|
||||||
dataSource = dataSource.map(record => {
|
dataSource = dataSource.map(record => {
|
||||||
record.key = props.rowKey(record);
|
record.key = props.rowKey(record);
|
||||||
return record;
|
return record;
|
||||||
|
Loading…
Reference in New Issue
Block a user