Skip to content

Commit 2cc03e6

Browse files
Alerting: Fix using stacks- prefix instead of stack- for checking the namespace in boot data (grafana#97492)
* Fix using stacks- prefix instead of stack- for checking the namespace in config boot data * use config directly for namespace
1 parent 39aede9 commit 2cc03e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/app/features/alerting/unified/home/Insights.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ export const PANEL_STYLES = { minHeight: 300 };
9595

9696
const THIS_WEEK_TIME_RANGE = new SceneTimeRange({ from: 'now-1w', to: 'now' });
9797

98-
const namespace = config.bootData.settings.namespace;
98+
const namespace = config.namespace;
9999

100-
export const INSTANCE_ID = namespace.includes('stack-') ? namespace.replace('stack-', '') : undefined;
100+
export const INSTANCE_ID = namespace.includes('stacks-') ? namespace.replace('stacks-', '') : undefined;
101101

102102
const getInsightsDataSources = () => {
103103
const dataSourceSrv = getDataSourceSrv();

0 commit comments

Comments
 (0)