mirror of
https://github.com/voideditor/void
synced 2026-05-23 17:38:23 +00:00
revert
This commit is contained in:
parent
b35dfdf475
commit
78c6baed82
1 changed files with 1 additions and 4 deletions
|
|
@ -2856,16 +2856,13 @@ export const SidebarChat = () => {
|
|||
|
||||
// resolve mount info
|
||||
const isResolved = chatThreadsState.allThreads[threadId]?.state.mountedInfo?.mountedIsResolvedRef.current
|
||||
|
||||
useEffect(() => {
|
||||
if (isResolved) return
|
||||
chatThreadsState.allThreads[threadId]?.state.mountedInfo?._whenMountedResolver?.({
|
||||
textAreaRef: textAreaRef,
|
||||
scrollToBottom: () => scrollToBottom(scrollContainerRef),
|
||||
})
|
||||
|
||||
// Trigger a window resize event to ensure proper layout calculations
|
||||
window.dispatchEvent(new Event('resize'))
|
||||
|
||||
}, [chatThreadsState, threadId, textAreaRef, scrollContainerRef, isResolved])
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue