diff --git a/public/app/features/inspector/InspectDataTab.tsx b/public/app/features/inspector/InspectDataTab.tsx index 7c070e500e0..dd077aad372 100644 --- a/public/app/features/inspector/InspectDataTab.tsx +++ b/public/app/features/inspector/InspectDataTab.tsx @@ -14,7 +14,7 @@ import { transformDataFrame, } from '@grafana/data'; import { selectors } from '@grafana/e2e-selectors'; -import { reportInteraction } from '@grafana/runtime'; +import { getTemplateSrv, reportInteraction } from '@grafana/runtime'; import { Button, Spinner, Table } from '@grafana/ui'; import { config } from 'app/core/config'; import { t, Trans } from 'app/core/internationalization'; @@ -189,9 +189,7 @@ export class InspectDataTab extends PureComponent { theme: config.theme2, fieldConfig: fieldConfigCleaned, timeZone, - replaceVariables: (value: string) => { - return value; - }, + replaceVariables: (value, scopedVars, format) => getTemplateSrv().replace(value, scopedVars, format), }); }