mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
Fix Object.assign via spread operator
This commit is contained in:
parent
4446e73fda
commit
80baae87cd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user