mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Explore: Fix time interpolation (#46737)
* Ensure TemplateService is updated with new time range on each time range change. * Fix linting errors * Fix explorePane.test.ts * Reuse createDefaultInitialState * Remove unused imports * Add a test for left/right split * Silence console.error in tests * Silence console.error in tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ScopedVars, VariableModel } from '@grafana/data';
|
||||
import { ScopedVars, TimeRange, VariableModel } from '@grafana/data';
|
||||
import { variableRegex } from '../variables/utils';
|
||||
import { TemplateSrv } from '@grafana/runtime';
|
||||
|
||||
@@ -55,4 +55,6 @@ export class TemplateSrvMock implements TemplateSrv {
|
||||
const match = this.regex.exec(target);
|
||||
return match !== null;
|
||||
}
|
||||
|
||||
updateTimeRange(timeRange: TimeRange) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user