mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Updated "react-use" package to newest version (#37579)
* package.json: updated react-use to newest version * fixes (typescript and other)
This commit is contained in:
@@ -11,7 +11,7 @@ import { PanelInspectActionSupplier } from './PanelInspectActions';
|
||||
* Given PanelData return first data source supporting metadata inspector
|
||||
*/
|
||||
export const useDatasourceMetadata = (data?: PanelData) => {
|
||||
const state = useAsync<DataSourceApi | undefined>(async () => {
|
||||
const state = useAsync(async () => {
|
||||
const targets = data?.request?.targets || [];
|
||||
|
||||
if (data && data.series && targets.length) {
|
||||
|
||||
Reference in New Issue
Block a user