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