mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
DataSourceSettings: Minor fix for uncontrolled input (#16863)
This commit is contained in:
parent
f3f762065a
commit
20dada0159
@ -171,7 +171,7 @@ export class DataSourceSettingsPage extends PureComponent<Props, State> {
|
||||
}
|
||||
|
||||
get hasDataSource() {
|
||||
return Object.keys(this.props.dataSource).length > 0;
|
||||
return this.state.dataSource.id > 0;
|
||||
}
|
||||
|
||||
render() {
|
||||
|
Loading…
Reference in New Issue
Block a user