Skip to content

Commit

Permalink
chore: InputFile内のloopに設定するkeyの値を調整
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiM committed Jan 15, 2025
1 parent 0528a2a commit b5503a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/smarthr-ui/src/components/InputFile/InputFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const InputFile = forwardRef<HTMLInputElement, Props & ElementProps>(
{!disabled && hasFileList && files.length > 0 && (
<BaseColumn as="ul" padding={BASE_COLUMN_PADDING} className={fileListStyle}>
{files.map((file, index) => (
<li key={`${file.name}-${index}`} className={fileItemStyle}>
<li key={index} className={fileItemStyle}>
<span className="smarthr-ui-InputFile-fileName">{file.name}</span>
<Button
variant="text"
Expand Down

0 comments on commit b5503a0

Please sign in to comment.