Null has an object type

This commit is contained in:
Cohee 2024-03-21 21:47:18 +02:00
parent b0fbe9434d
commit 0021055f5c
1 changed files with 1 additions and 1 deletions

View File

@ -4750,7 +4750,7 @@ async function saveReply(type, getMessage, fromStreaming, title, swipes) {
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'] = {};
}