Split if condition

9250be348de9d275c94ff21971982747e3f466bc

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -1Showing whitespace changes
public/script.js+3 -1
@@ -3198,11 +3198,13 @@ class StreamingProcessor {
31983198 chat[messageId]['extra'] = {};
31993199 }
32003200
32013201 if (this.reasoning && this.messageReasoningDom instanceof HTMLElement) {
32023202 chat[messageId]['extra']['reasoning'] = this.reasoning;
3203+ if (this.messageReasoningDom instanceof HTMLElement) {
32033204 const formattedReasoning = messageFormatting(this.reasoning, '', false, false, -1);
32043205 this.messageReasoningDom.innerHTML = formattedReasoning;
32053206 }
3207+ }
32063208
32073209 if (currentTokenCount) {
32083210 chat[messageId]['extra']['token_count'] = currentTokenCount;