Skip to content

Commit

Permalink
fix: Append actual fix #2442
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed Dec 30, 2024
1 parent c2c2ff1 commit 9a9dc02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/src/chatbot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ export const XChatbot = (props: Chatbot) => {
}
}, [props.events, props.name]),
onDataChange = React.useCallback(() => {
if (props.data) setMsgs(processData(props.data))
// if (props.data) setMsgs(prevMsgs => processData(props.data).map((msg, idx) => ({ ...msg, positive: prevMsgs?.[idx]?.positive })))
if (props.data) setMsgs(prevMsgs => processData(props.data).map((msg, idx) => ({ ...msg, positive: prevMsgs?.[idx]?.positive })))
}, [props.data]),
handlePositive = (id: I) => {
setMsgs(messages => {
Expand Down

0 comments on commit 9a9dc02

Please sign in to comment.