From daf9022decdbbbf9bded0df47dd501d81326a347 Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Tue, 3 Apr 2018 13:21:52 -0700 Subject: [PATCH] Remove Object.assign --- ui/src/CheckSources.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ui/src/CheckSources.tsx b/ui/src/CheckSources.tsx index 8397f615bb..0d01573c24 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}) ) } }