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() { splitDataSource() {
const { targetKeys, dataSource } = this.props; const { targetKeys, dataSource } = this.props;
let leftDataSource = Object.assign([], dataSource); let leftDataSource = [...dataSource];
let rightDataSource = []; let rightDataSource = [];
if (targetKeys.length > 0) { if (targetKeys.length > 0) {