Alerting: Fix recording rules rendering simplified condition (#97497)

fix recording rules rendering simplified condition
sbom-fix
Sonia Aguilar 6 months ago committed by GitHub
parent 2cc03e60d2
commit 6bdd8f7fca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      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(() => {

Loading…
Cancel
Save