Fix text streaming breaking scroll

This commit is contained in:
Gregory Schier
2025-06-04 10:38:55 -07:00
parent 9d9e83d59f
commit 58873ea606
2 changed files with 5 additions and 5 deletions

View File

@@ -100,8 +100,7 @@ export function TextViewer({ language, text, responseId, requestId, pretty, clas
]);
const formattedBody = useFormatText({ text, language, pretty });
if (formattedBody.data == null) {
if (formattedBody == null) {
return null;
}
@@ -113,7 +112,7 @@ export function TextViewer({ language, text, responseId, requestId, pretty, clas
body = filteredResponse.data != null ? filteredResponse.data : '';
}
} else {
body = formattedBody.data;
body = formattedBody;
}
// Decode unicode sequences in the text to readable characters