Skip to content

Commit c96bad3

Browse files
committed
Fix iterator keys
1 parent 8c94671 commit c96bad3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/app/components/content/IsaacCoordinateQuestion.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ export const coordinateInputValidator = (input: (readonly string[])[]) => {
5252
const CoordinateInput = (props: CoordinateInputProps) => {
5353
const {value, placeholderValues, numberOfDimensions, onChange, readonly, remove} = props;
5454
return <span className="coordinate-input">{[...Array(numberOfDimensions)].map((_, i) =>
55-
<>
55+
<span key={i}>
5656
(<Input
57-
key={i}
5857
type="text"
5958
className="force-print"
6059
placeholder={placeholderValues[i] ?? ""}
@@ -64,7 +63,7 @@ const CoordinateInput = (props: CoordinateInputProps) => {
6463
readOnly={readonly}
6564
/>)
6665
{(i < numberOfDimensions - 1) && <span className="coordinate-input-separator">,&nbsp;</span>}
67-
</>)}
66+
</span>)}
6867
{remove && <Button className="ms-3" size="sm" onClick={remove}>Delete</Button>}
6968
</span>;
7069
};

0 commit comments

Comments
 (0)