Replace Object.assign with spread
parent
1d5132693d
commit
1449716273
|
@ -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}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue