mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 13:19:33 +08:00
fix: remove unnecessary dependency from useEffect in MessageAnchorLine component
This commit is contained in:
parent
9547b00691
commit
0f6df4e5e0
@ -135,7 +135,7 @@ const MessageAnchorLine: FC<MessageLineProps> = ({ messages }) => {
|
|||||||
|
|
||||||
messageElement.scrollIntoView({ behavior: 'smooth', block: 'start' })
|
messageElement.scrollIntoView({ behavior: 'smooth', block: 'start' })
|
||||||
},
|
},
|
||||||
[messages, setSelectedMessage]
|
[setSelectedMessage]
|
||||||
)
|
)
|
||||||
|
|
||||||
if (messages.length === 0) return null
|
if (messages.length === 0) return null
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user