DataSourceSettings: Minor fix for uncontrolled input (#16863)
This commit is contained in:
1 parent
f3f762065a
commit
20dada0159
1 file changed
+1
-1
@@ -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