mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Use spread operator over Object.assign (#14496)
This commit is contained in:
parent
e49eab2df0
commit
73058c67b1
1 changed files with 3 additions and 2 deletions
|
@ -126,10 +126,11 @@ class Resize extends Component {
|
|||
render() {
|
||||
const { state } = this;
|
||||
|
||||
const expandStyle = Object.assign({}, expandChildStyle, {
|
||||
const expandStyle = {
|
||||
...expandChildStyle,
|
||||
width: state.expandChildWidth,
|
||||
height: state.expandChildHeight
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue