Alerting: Use the stepNo to make sure the ID of the switch is unique (#97405)
This commit is contained in:
1 parent
20e619e445
commit
9a262c867c
1 file changed
+1
-1
@@ -37,7 +37,7 @@ export const RuleEditorSection = ({
|
||||
{switchMode && (
|
||||
<Text variant="bodySmall">
|
||||
<InlineSwitch
|
||||
id="query-and-expressions-advanced-switch"
|
||||
id={`advanced-switch-${stepNo}`}
|
||||
data-testid={
|
||||
switchMode.isAdvancedMode
|
||||
? 'query-and-expressions-advanced-options'
|
||||
|
||||
Reference in new issue
Block a user