Skip to content

Commit

Permalink
Fixed ids for automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Nov 9, 2022
1 parent bce1fde commit c60b1d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function MetadataFilterConfigurationListItem ({ filter, isLast, isFirst,
<span className="">{ filter['@type'] }</span>
<span className="ms-auto">
<Form.Check type="switch"
id={`customSwitch-${filter.resourceId}`}
id={`customSwitch-${index}`}
label={<Translate value={filter.filterEnabled ? 'label.enabled' : 'label.disabled'} />}
checked={filter.filterEnabled}
disabled={loading}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function ProviderList({ children, entities, reorder = true, first, last,
<Form.Check
size="lg"
type="switch"
id={`enable-switch-${provider.resourceId}`}
id={`enable-switch-${idx}`}
aria-label={translator(provider.enabled ? 'label.disable' : 'label.enable')}
onChange={({ target: { checked } }) => onEnable(provider, checked)}
checked={provider.enabled}
Expand Down

0 comments on commit c60b1d2

Please sign in to comment.