Skip to content

Commit 73aba37

Browse files
committed
🤖 Fix: Add ref to all ChatArea instances
ChatArea ref was only added to main return path, but there's an early return for 'Loading workspace...' that also renders ChatArea. Added ref to both ChatArea instances so ResizeObserver can measure properly regardless of which render path is taken. _Generated with `cmux`_
1 parent 5144273 commit 73aba37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/AIView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ const AIViewInner: React.FC<AIViewProps> = ({
348348
if (!workspaceState) {
349349
return (
350350
<ViewContainer className={className}>
351-
<ChatArea>
351+
<ChatArea ref={chatAreaRef}>
352352
<OutputContainer>
353353
<LoadingIndicator>Loading workspace...</LoadingIndicator>
354354
</OutputContainer>

0 commit comments

Comments
 (0)