fix: fragment key

This commit is contained in:
TrèsAbhi committed 2024-04-21 11:16:46 -05:00
1 parent 11e4009303
commit 2b354770c7
1 file changed
+3 -3
@@ -9,7 +9,7 @@ import {
TextField, TextField,
} from '@radix-ui/themes'; } from '@radix-ui/themes';
import { debounce } from 'lodash'; import { debounce } from 'lodash';
import { use, useEffect, useRef, useState } from 'react'; import { Fragment, use, useEffect, useRef, useState } from 'react';
import { lerp } from 'three/src/math/MathUtils'; import { lerp } from 'three/src/math/MathUtils';
import { ShellButton } from '../../../../../../components/ModuleButtons/ShellButton'; import { ShellButton } from '../../../../../../components/ModuleButtons/ShellButton';
import { applyPitchYawLimits } from '../../../../../../core/blitz/applyPitchYawLimits'; import { applyPitchYawLimits } from '../../../../../../core/blitz/applyPitchYawLimits';
@@ -516,7 +516,7 @@ export function Characteristics() {
const count = member.count ?? 1; const count = member.count ?? 1;
return ( return (
<> <Fragment key={member.type}>
<InfoWithDelta <InfoWithDelta
key={`${member.type}-root`} key={`${member.type}-root`}
name={`${CREW_MEMBER_NAMES[member.type]}${count > 1 ? ` x ${count}` : ''}`} name={`${CREW_MEMBER_NAMES[member.type]}${count > 1 ? ` x ${count}` : ''}`}
@@ -545,7 +545,7 @@ export function Characteristics() {
} }
/> />
)} )}
</> </Fragment>
); );
})} })}
</Flex> </Flex>