From 6bdd8f7fcacbc9582c248a471ebfcd90ff6dc2fb Mon Sep 17 00:00:00 2001 From: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:43:00 +0100 Subject: [PATCH] Alerting: Fix recording rules rendering simplified condition (#97497) fix recording rules rendering simplified condition --- .../query-and-alert-condition/QueryAndExpressionsStep.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/alerting/unified/components/rule-editor/query-and-alert-condition/QueryAndExpressionsStep.tsx b/public/app/features/alerting/unified/components/rule-editor/query-and-alert-condition/QueryAndExpressionsStep.tsx index b828e2e3d96..63130a09b5a 100644 --- a/public/app/features/alerting/unified/components/rule-editor/query-and-alert-condition/QueryAndExpressionsStep.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/query-and-alert-condition/QueryAndExpressionsStep.tsx @@ -183,7 +183,8 @@ export const QueryAndExpressionsStep = ({ editingExistingRule, onDataChange }: P expressionQueries ); - const simplifiedQueryStep = isSwitchModeEnabled ? getValues('editorSettings.simplifiedQueryEditor') : false; + const simplifiedQueryStep = + isSwitchModeEnabled && isGrafanaAlertingType ? getValues('editorSettings.simplifiedQueryEditor') : false; // If we switch to simple mode we need to update the simple condition with the data in the queries reducer useEffect(() => {