mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix rendering of messages without extra object
This commit is contained in:
@ -181,8 +181,11 @@ export class ReasoningHandler {
|
|||||||
: $(messageIdOrElement)[0];
|
: $(messageIdOrElement)[0];
|
||||||
const messageId = Number(messageElement.getAttribute('mesid'));
|
const messageId = Number(messageElement.getAttribute('mesid'));
|
||||||
|
|
||||||
if (isNaN(messageId)) return;
|
if (isNaN(messageId) || !chat[messageId]) return;
|
||||||
|
|
||||||
|
if (!chat[messageId].extra) {
|
||||||
|
chat[messageId].extra = {};
|
||||||
|
}
|
||||||
const extra = chat[messageId].extra;
|
const extra = chat[messageId].extra;
|
||||||
|
|
||||||
if (extra.reasoning) {
|
if (extra.reasoning) {
|
||||||
|
Reference in New Issue
Block a user