Browse Source

remove typeof props.rowKey

pull/1905/head
RaoHai 9 years ago
parent
commit
a243d32dff
  1. 2
      components/transfer/index.jsx

2
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;

Loading…
Cancel
Save