From 144971627362be21758d5e5e2a33b6bd93b232ab Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Thu, 28 Sep 2017 13:26:25 -0700 Subject: [PATCH] Replace Object.assign with spread --- ui/src/shared/components/LayoutRenderer.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/src/shared/components/LayoutRenderer.js b/ui/src/shared/components/LayoutRenderer.js index 9c2ff94cb2..4ee88825a6 100644 --- a/ui/src/shared/components/LayoutRenderer.js +++ b/ui/src/shared/components/LayoutRenderer.js @@ -48,10 +48,7 @@ class LayoutRenderer extends Component { queryText = buildCannedDashboardQuery(query, timeRange, host) } - return Object.assign({}, query, { - host: source.links.proxy, - text: queryText, - }) + return {...query, host: source.links.proxy, text: queryText} }) }