mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix recording rules rendering simplified condition (#97497)
fix recording rules rendering simplified condition
This commit is contained in:
parent
2cc03e60d2
commit
6bdd8f7fca
@ -183,7 +183,8 @@ export const QueryAndExpressionsStep = ({ editingExistingRule, onDataChange }: P
|
|||||||
expressionQueries
|
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
|
// If we switch to simple mode we need to update the simple condition with the data in the queries reducer
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user