Skip to content

Commit 30dc6a5

Browse files
committed
refactor
1 parent a949b12 commit 30dc6a5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -585,13 +585,12 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
585585
}
586586
break
587587
case "condenseTaskContextResponse":
588-
if (!message.text || message.text !== currentTaskItem?.id) {
589-
break
590-
}
591-
if (isCondensing && sendingDisabled) {
592-
setSendingDisabled(false)
588+
if (message.text && message.text === currentTaskItem?.id) {
589+
if (isCondensing && sendingDisabled) {
590+
setSendingDisabled(false)
591+
}
592+
setIsCondensing(false)
593593
}
594-
setIsCondensing(false)
595594
break
596595
}
597596
// textAreaRef.current is not explicitly required here since React

0 commit comments

Comments
 (0)