mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Re-enable rule prefer-destructuring (only for objects) (#10867)
This commit is contained in:
committed by
GitHub
parent
c51168a30a
commit
352e8a1afd
@@ -57,8 +57,7 @@ export default class EmbedCodeButton extends React.Component {
|
||||
}
|
||||
|
||||
handleInputChange(e) {
|
||||
const value = e.currentTarget.value;
|
||||
const name = e.currentTarget.name;
|
||||
const { value, name } = e.currentTarget;
|
||||
const data = {};
|
||||
data[name] = value;
|
||||
this.setState(data);
|
||||
|
||||
Reference in New Issue
Block a user