Skip to content

Commit b9b3376

Browse files
authored
Fix toggle switch ids in install dialog (#1448)
1 parent 25fe2ad commit b9b3376

File tree

1 file changed

+2
-2
lines changed
  • src/screens/Library/components/InstallModal

1 file changed

+2
-2
lines changed

src/screens/Library/components/InstallModal/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -608,13 +608,13 @@ export default function InstallModal({
608608
)}
609609
{haveSDL && (
610610
<div className="InstallModal__sdls">
611-
{sdls.map((sdl: SelectiveDownload) => (
611+
{sdls.map((sdl: SelectiveDownload, idx: number) => (
612612
<label
613613
key={sdl.name}
614614
className="InstallModal__toggle toggleWrapper"
615615
>
616616
<ToggleSwitch
617-
htmlId="sdls"
617+
htmlId={`sdls-${idx}`}
618618
title={sdl.name}
619619
value={
620620
!!sdl.mandatory || !!selectedSdls[getUniqueKey(sdl)]

0 commit comments

Comments
 (0)