Remove Object.assign
parent
957731710a
commit
daf9022dec
|
@ -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})
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue