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:
Sonia Aguilar 2024-12-05 18:30:29 +01:00 committed by GitHub
parent 39aede9802
commit 2cc03e60d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,9 +95,9 @@ export const PANEL_STYLES = { minHeight: 300 };
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 dataSourceSrv = getDataSourceSrv();