diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 855b6bf3f49..d3f56825703 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -1122,12 +1122,11 @@ function _Chat() { }; const updateMessageAudio = (msgId?: string, audio_url?: string) => { - chatStore.updateCurrentSession( - (session) => - (session.messages = session.messages.map((m) => - m.id === msgId ? { ...m, audio_url } : m, - )), - ); + chatStore.updateCurrentSession((session) => { + session.messages = session.messages.map((m) => + m.id === msgId ? { ...m, audio_url } : m, + ); + }); }; const onDelete = (msgId: string) => { @@ -1903,7 +1902,6 @@ function _Chat() { )} {message.audio_url && (