Remove Object.assign

pull/3118/head
Andrew Watkins 2018-04-03 13:21:52 -07:00
parent 3713733672
commit d99f7720ee
1 changed files with 1 additions and 6 deletions

View File

@ -206,12 +206,7 @@ class CheckSources extends Component<Props, State> {
return (
this.props.children &&
React.cloneElement(
this.props.children,
Object.assign({}, this.props, {
source,
})
)
React.cloneElement(this.props.children, {...this.props, source})
)
}
}