diff --git a/public/app/core/context/GrafanaContext.ts b/public/app/core/context/GrafanaContext.ts index 6540814c2d2..b9596eddfc9 100644 --- a/public/app/core/context/GrafanaContext.ts +++ b/public/app/core/context/GrafanaContext.ts @@ -20,6 +20,5 @@ export function useGrafana(): GrafanaContextType { if (!context) { throw new Error('No GrafanaContext found'); } - // eslint-disable-next-line @typescript-eslint/consistent-type-assertions - return context as GrafanaContextType; + return context; }