Skip to content

Commit 5707b76

Browse files
committed
fix(react): add missing unique key props to ChatInputFormattingToolbar components
1 parent 89e85b7 commit 5707b76

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/react/src/views/ChatInput/ChatInputFormattingToolbar.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ const ChatInputFormattingToolbar = ({
116116

117117
audio: (
118118
<AudioMessageRecorder
119+
key="audio"
119120
displayName={
120121
isPopoverOpen && popOverItems.includes('audio') ? 'audio' : null
121122
}
@@ -125,6 +126,7 @@ const ChatInputFormattingToolbar = ({
125126
),
126127
video: (
127128
<VideoMessageRecorder
129+
key="video"
128130
displayName={
129131
isPopoverOpen && popOverItems.includes('video') ? 'video' : null
130132
}
@@ -194,7 +196,7 @@ const ChatInputFormattingToolbar = ({
194196
.map((name) => formatter.find((item) => item.name === name))
195197
.map((item) =>
196198
isPopoverOpen && popOverItems.includes('formatter') ? (
197-
<>
199+
<React.Fragment key={item.name}>
198200
<Box
199201
key={item.name}
200202
disabled={isRecordingMessage}
@@ -211,7 +213,7 @@ const ChatInputFormattingToolbar = ({
211213
/>
212214
<span>{item.name}</span>
213215
</Box>
214-
</>
216+
</React.Fragment>
215217
) : (
216218
<Tooltip
217219
text={item.name}

0 commit comments

Comments
 (0)