Remove Object.assign

pull/10616/head
Andrew Watkins 2018-04-03 13:21:52 -07:00
parent 957731710a
commit daf9022dec
1 changed files with 1 additions and 6 deletions

View File

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