mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +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() {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user