mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix data-testid in RuleEditorSection (#97473)
Fix advanced switch in notifications step
This commit is contained in:
parent
b105b32c8a
commit
3838fa5e55
@ -39,9 +39,7 @@ export const RuleEditorSection = ({
|
|||||||
<InlineSwitch
|
<InlineSwitch
|
||||||
id={`advanced-switch-${stepNo}`}
|
id={`advanced-switch-${stepNo}`}
|
||||||
data-testid={
|
data-testid={
|
||||||
switchMode.isAdvancedMode
|
switchMode.isAdvancedMode ? `advanced-switch-${stepNo}-advanced` : `advanced-switch-${stepNo}-basic`
|
||||||
? 'query-and-expressions-advanced-options'
|
|
||||||
: 'query-and-expressions-simple-options'
|
|
||||||
}
|
}
|
||||||
value={switchMode.isAdvancedMode}
|
value={switchMode.isAdvancedMode}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user