mirror of https://github.com/grafana/grafana
DataSources: fix DataSourceAddButton component (#60176)
* fix DataSourceAddButton component This component implicitly returned `false` when `canCreateDataSource` was false, and that way it didn't qualify as a function component. We fixed it to explicitly return null in this case. * DataSourceAddButton: update function signature This is more consistent with other code in this codebase.pull/60333/head
parent
171cd60480
commit
edb86d4bf3
Loading…
Reference in new issue