remove typeof props.rowKey

This commit is contained in:
RaoHai 2016-06-02 16:15:19 +08:00
parent d0532db3d7
commit a243d32dff

View File

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