Replace Object.assign with spread
parent
1d5132693d
commit
1449716273
|
@ -48,10 +48,7 @@ class LayoutRenderer extends Component {
|
||||||
queryText = buildCannedDashboardQuery(query, timeRange, host)
|
queryText = buildCannedDashboardQuery(query, timeRange, host)
|
||||||
}
|
}
|
||||||
|
|
||||||
return Object.assign({}, query, {
|
return {...query, host: source.links.proxy, text: queryText}
|
||||||
host: source.links.proxy,
|
|
||||||
text: queryText,
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue