diff --git a/ui/src/CheckSources.tsx b/ui/src/CheckSources.tsx index 8397f615b..0d01573c2 100644 --- a/ui/src/CheckSources.tsx +++ b/ui/src/CheckSources.tsx @@ -206,12 +206,7 @@ class CheckSources extends Component { return ( this.props.children && - React.cloneElement( - this.props.children, - Object.assign({}, this.props, { - source, - }) - ) + React.cloneElement(this.props.children, {...this.props, source}) ) } }