Should be 

```
Object.assign({}, FORM_DATA_DEFAULTS, metrics);
```

To create a copy and put all the fields of `FORM_DATA_DEFAULTS` and `metrics` 
into the new object.
The current code will modify `FORM_DATA_DEFAULTS`.
You can also use this object spread notation

```
const formData = { ...FORM_DATA_DEFAULTS, ...metrics }
```

[ Full content available at: 
https://github.com/apache/incubator-superset/pull/5693 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to