DataSourceSettings: Minor fix for uncontrolled input (#16863)

This commit is contained in:
Torkel Ödegaard
2019-05-03 08:30:09 +02:00
committed by GitHub
parent f3f762065a
commit 20dada0159

View File

@@ -171,7 +171,7 @@ export class DataSourceSettingsPage extends PureComponent<Props, State> {
} }
get hasDataSource() { get hasDataSource() {
return Object.keys(this.props.dataSource).length > 0; return this.state.dataSource.id > 0;
} }
render() { render() {