From 5a16d27f89903c1b31260db87852b1a2b05d33ec Mon Sep 17 00:00:00 2001 From: sbgap Date: Mon, 2 Feb 2026 15:26:47 +0100 Subject: [PATCH] fix: use alert id for alert detail page in history table --- src/pages/History.vue | 2 +- src/plugins/store/types/alerts-types.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/History.vue b/src/pages/History.vue index 45caa9a0..de2a4704 100644 --- a/src/pages/History.vue +++ b/src/pages/History.vue @@ -213,7 +213,7 @@ function rowProps({item}: {item: any}) { const isDateRange = (date: DateRange | string[]): date is DateRange => !(date instanceof Array) function selectItem(item: History) { - router.push({path: `/alert/${item.id}`, query: {redirect: route.fullPath}}) + router.push({path: `/alert/${item.alertId}`, query: {redirect: route.fullPath}}) } function setEnv(env: string) { diff --git a/src/plugins/store/types/alerts-types.ts b/src/plugins/store/types/alerts-types.ts index 1f3fa06e..4db45530 100644 --- a/src/plugins/store/types/alerts-types.ts +++ b/src/plugins/store/types/alerts-types.ts @@ -93,6 +93,7 @@ interface Note { export interface History { id: string + alertId: string href: string environment: string attributes: Attributes