mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix using stacks- prefix instead of stack- for checking the namespace in boot data (#97492)
* Fix using stacks- prefix instead of stack- for checking the namespace in config boot data * use config directly for namespace
This commit is contained in:
parent
39aede9802
commit
2cc03e60d2
@ -95,9 +95,9 @@ export const PANEL_STYLES = { minHeight: 300 };
|
|||||||
|
|
||||||
const THIS_WEEK_TIME_RANGE = new SceneTimeRange({ from: 'now-1w', to: 'now' });
|
const THIS_WEEK_TIME_RANGE = new SceneTimeRange({ from: 'now-1w', to: 'now' });
|
||||||
|
|
||||||
const namespace = config.bootData.settings.namespace;
|
const namespace = config.namespace;
|
||||||
|
|
||||||
export const INSTANCE_ID = namespace.includes('stack-') ? namespace.replace('stack-', '') : undefined;
|
export const INSTANCE_ID = namespace.includes('stacks-') ? namespace.replace('stacks-', '') : undefined;
|
||||||
|
|
||||||
const getInsightsDataSources = () => {
|
const getInsightsDataSources = () => {
|
||||||
const dataSourceSrv = getDataSourceSrv();
|
const dataSourceSrv = getDataSourceSrv();
|
||||||
|
Loading…
Reference in New Issue
Block a user