File tree Expand file tree Collapse file tree
packages/react/src/views/ChatInput Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments