Skip to content

Commit 6bdd8f7

Browse files
Alerting: Fix recording rules rendering simplified condition (grafana#97497)
fix recording rules rendering simplified condition
1 parent 2cc03e6 commit 6bdd8f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/app/features/alerting/unified/components/rule-editor/query-and-alert-condition/QueryAndExpressionsStep.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ export const QueryAndExpressionsStep = ({ editingExistingRule, onDataChange }: P
183183
expressionQueries
184184
);
185185

186-
const simplifiedQueryStep = isSwitchModeEnabled ? getValues('editorSettings.simplifiedQueryEditor') : false;
186+
const simplifiedQueryStep =
187+
isSwitchModeEnabled && isGrafanaAlertingType ? getValues('editorSettings.simplifiedQueryEditor') : false;
187188

188189
// If we switch to simple mode we need to update the simple condition with the data in the queries reducer
189190
useEffect(() => {

0 commit comments

Comments
 (0)