DataSourceSettings: Minor fix for uncontrolled input (#16863)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user