Skip to content

Commit f29805f

Browse files
committed
refactor(ChattyLLMInputForm): remove unneeded else block
Signed-off-by: Edward Ly <contact@edward.ly>
1 parent 3cc93b3 commit f29805f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/ChattyLLM/ChattyLLMInputForm.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,15 @@ export default {
273273
this.editingTitle = false
274274
this.$refs.inputComponent.focus()
275275
276-
if (this.active !== null && !this.loading.newSession) {
277-
await this.fetchMessages()
278-
this.scrollToBottom()
279-
} else {
280-
// when no active session or creating a new session
276+
if (this.active === null || this.loading.newSession) {
281277
this.allMessagesLoaded = true
282278
this.loading.newSession = false
283279
return
284280
}
281+
282+
await this.fetchMessages()
283+
this.scrollToBottom()
284+
285285
// start polling in case a message is currently being generated
286286
try {
287287
const sessionId = this.active.id

0 commit comments

Comments
 (0)