Fix Object.assign via spread operator

This commit is contained in:
afc163 2016-02-23 16:28:41 +08:00
parent 4446e73fda
commit 80baae87cd

View File

@ -23,7 +23,7 @@ class Transfer extends Component {
splitDataSource() {
const { targetKeys, dataSource } = this.props;
let leftDataSource = Object.assign([], dataSource);
let leftDataSource = [...dataSource];
let rightDataSource = [];
if (targetKeys.length > 0) {