diff --git a/public/app/features/datasources/settings/DataSourceSettingsPage.tsx b/public/app/features/datasources/settings/DataSourceSettingsPage.tsx index fd2fa3ebf26..1ef8fef7026 100644 --- a/public/app/features/datasources/settings/DataSourceSettingsPage.tsx +++ b/public/app/features/datasources/settings/DataSourceSettingsPage.tsx @@ -171,7 +171,7 @@ export class DataSourceSettingsPage extends PureComponent { } get hasDataSource() { - return Object.keys(this.props.dataSource).length > 0; + return this.state.dataSource.id > 0; } render() {