Commit 20dada01 by Torkel Ödegaard Committed by GitHub

DataSourceSettings: Minor fix for uncontrolled input (#16863)

parent f3f76206
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment