Null has an object type
This commit is contained in:
parent
b0fbe9434d
commit
0021055f5c
|
@ -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'] = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue