mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
Re-enable rule no-unused-state (#10871)
This commit is contained in:
committed by
GitHub
parent
352e8a1afd
commit
906a629b33
@@ -50,9 +50,6 @@ const defaultProps = {
|
||||
export default class ColorSchemeControl extends React.PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
scheme: this.props.value,
|
||||
};
|
||||
this.onChange = this.onChange.bind(this);
|
||||
this.renderOption = this.renderOption.bind(this);
|
||||
}
|
||||
@@ -60,7 +57,6 @@ export default class ColorSchemeControl extends React.PureComponent {
|
||||
onChange(option) {
|
||||
const optionValue = option ? option.value : null;
|
||||
this.props.onChange(optionValue);
|
||||
this.setState({ scheme: optionValue });
|
||||
}
|
||||
|
||||
renderOption(key) {
|
||||
|
||||
@@ -60,7 +60,6 @@ class DatasourceControl extends React.PureComponent {
|
||||
this.state = {
|
||||
showEditDatasourceModal: false,
|
||||
showChangeDatasourceModal: false,
|
||||
menuExpanded: false,
|
||||
};
|
||||
this.onDatasourceSave = this.onDatasourceSave.bind(this);
|
||||
this.toggleChangeDatasourceModal = this.toggleChangeDatasourceModal.bind(
|
||||
|
||||
Reference in New Issue
Block a user