mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Null has an object type
This commit is contained in:
@ -4750,7 +4750,7 @@ async function saveReply(type, getMessage, fromStreaming, title, swipes) {
|
|||||||
type = 'normal';
|
type = 'normal';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chat.length && typeof chat[chat.length - 1]['extra'] !== 'object') {
|
if (chat.length && !chat[chat.length - 1]['extra']) {
|
||||||
chat[chat.length - 1]['extra'] = {};
|
chat[chat.length - 1]['extra'] = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user