Replace Object.assign with spread

pull/10616/head
Andrew Watkins 2017-09-28 13:26:25 -07:00
parent 1d5132693d
commit 1449716273
1 changed files with 1 additions and 4 deletions

View File

@ -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}
})
}