From 9d1305f174618f1fb25d08c453b292b68c9c854e Mon Sep 17 00:00:00 2001 From: Amol Umbark Date: Fri, 24 Feb 2023 15:09:30 +0530 Subject: [PATCH] fix: resolves alert charts issue with 1 hr timerame (#2377) --- frontend/src/container/FormAlertRules/RuleOptions.tsx | 2 +- frontend/src/container/FormAlertRules/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/container/FormAlertRules/RuleOptions.tsx b/frontend/src/container/FormAlertRules/RuleOptions.tsx index d0ce0b2746..071ff84d7f 100644 --- a/frontend/src/container/FormAlertRules/RuleOptions.tsx +++ b/frontend/src/container/FormAlertRules/RuleOptions.tsx @@ -104,7 +104,7 @@ function RuleOptions({ - + diff --git a/frontend/src/container/FormAlertRules/utils.ts b/frontend/src/container/FormAlertRules/utils.ts index 35a5eb158c..a3978a9007 100644 --- a/frontend/src/container/FormAlertRules/utils.ts +++ b/frontend/src/container/FormAlertRules/utils.ts @@ -132,7 +132,7 @@ export const toChartInterval = (evalWindow: string | undefined): Time => { return '15min'; case '30m0s': return '30min'; - case '60m0s': + case '1h0m0s': return '1hr'; case '4h0m0s': return '4hr';