mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-12 00:49:14 +08:00
chore: format
This commit is contained in:
parent
2a6dcec120
commit
40fee5de40
@ -81,9 +81,7 @@ const AgentSessionMessages: React.FC<Props> = ({ agentId, sessionId }) => {
|
||||
|
||||
// Listen for send message events to auto-scroll to bottom
|
||||
useEffect(() => {
|
||||
const unsubscribes = [
|
||||
EventEmitter.on(EVENT_NAMES.SEND_MESSAGE, scrollToBottom)
|
||||
]
|
||||
const unsubscribes = [EventEmitter.on(EVENT_NAMES.SEND_MESSAGE, scrollToBottom)]
|
||||
return () => unsubscribes.forEach((unsub) => unsub())
|
||||
}, [scrollToBottom])
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user