디바이스 목록 key 중복 수정: deviceId+index 조합
This commit is contained in:
parent
9dbf5c2a08
commit
2392d05ded
2 changed files with 4 additions and 4 deletions
|
|
@ -108,9 +108,9 @@ export function OnboardingModal({ open, onClose }: OnboardingModalProps): React.
|
|||
사용할 마이크를 선택하세요. 나중에 설정에서 변경할 수 있습니다.
|
||||
</Typography>
|
||||
<Stack spacing={1} mb={3}>
|
||||
{devices.map((d) => (
|
||||
{devices.map((d, idx) => (
|
||||
<Box
|
||||
key={d.deviceId}
|
||||
key={`${d.deviceId}-${idx}`}
|
||||
onClick={() => {
|
||||
setSelectedDevice(d.deviceId)
|
||||
window.electronAPI.audio.setSelectedDevice({ deviceId: d.deviceId })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue