Skip to content

Commit f76fc05

Browse files
authored
Touch ups (#53)
touch ups
1 parent beafedc commit f76fc05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
http-equiv="Content-Security-Policy"
99
content="script-src 'self' 'unsafe-inline';"
1010
/>
11-
<title>Local AI</title>
11+
<title>Dynaboard AI Studio</title>
1212
</head>
1313
<body>
1414
<div id="root"></div>

src/components/chat-window.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ export function ChatWindow({ id }: { id?: string }) {
176176
}, [currentThreadFilePath, selectedFile])
177177

178178
useEffect(() => {
179-
if (!isCurrentThreadGenerating && textAreaInputRef.current) {
179+
if (id && !isCurrentThreadGenerating && textAreaInputRef.current) {
180180
textAreaInputRef.current.focus()
181181
}
182-
}, [isCurrentThreadGenerating])
182+
}, [isCurrentThreadGenerating, id])
183183

184184
useEffect(() => {
185185
if (id) {

0 commit comments

Comments
 (0)