From 45d6430ab3ff204a264b6b85deb475591283c902 Mon Sep 17 00:00:00 2001 From: SagarRajput-7 <162284829+SagarRajput-7@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:48:28 +0530 Subject: [PATCH] fix: fixed panelType when creating alerts from histogram dashboard (#5251) * fix: fixed panelType when creating alerts from histogram dashboard * fix: added PANEL_TYPES.TIME_SERIES always for all type in case of alerts --- frontend/src/container/FormAlertRules/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/container/FormAlertRules/index.tsx b/frontend/src/container/FormAlertRules/index.tsx index 3e2325f5be..09fc618759 100644 --- a/frontend/src/container/FormAlertRules/index.tsx +++ b/frontend/src/container/FormAlertRules/index.tsx @@ -77,7 +77,8 @@ function FormAlertRules({ const urlQuery = useUrlQuery(); - const panelType = urlQuery.get(QueryParams.panelTypes) as PANEL_TYPES | null; + // In case of alert the panel types should always be "Graph" only + const panelType = PANEL_TYPES.TIME_SERIES; const { currentQuery,