diff --git a/public/app/features/explore/hooks/useExplorePageTitle.ts b/public/app/features/explore/hooks/useExplorePageTitle.ts index 42fff5a5fd8..804b2cf69d9 100644 --- a/public/app/features/explore/hooks/useExplorePageTitle.ts +++ b/public/app/features/explore/hooks/useExplorePageTitle.ts @@ -1,9 +1,9 @@ import { useEffect } from 'react'; +import { getDataSourceSrv } from '@grafana/runtime'; import { Branding } from 'app/core/components/Branding/Branding'; import { useGrafana } from 'app/core/context/GrafanaContext'; import { useNavModel } from 'app/core/hooks/useNavModel'; -import { getDatasourceSrv } from 'app/features/plugins/datasource_srv'; import { ExploreQueryParams } from 'app/types'; import { isFulfilled, hasKey } from './utils'; @@ -40,7 +40,7 @@ export function useExplorePageTitle(params: ExploreQueryParams) { return Promise.reject(); } - return getDatasourceSrv().get(pane.datasource); + return getDataSourceSrv().get(pane.datasource); }) ) .then((results) => results.filter(isFulfilled).map((result) => result.value)) diff --git a/public/app/features/explore/spec/queryHistory.test.tsx b/public/app/features/explore/spec/queryHistory.test.tsx index 76fcc7a0124..66eefeea309 100644 --- a/public/app/features/explore/spec/queryHistory.test.tsx +++ b/public/app/features/explore/spec/queryHistory.test.tsx @@ -119,7 +119,7 @@ describe('Explore: Query History', () => { }); }); - it.skip('adds recently added query if the query history panel is already open', async () => { + it('adds recently added query if the query history panel is already open', async () => { const urlParams = { left: serializeStateToUrlParam({ datasource: 'loki',