mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Check for swipes before trying to record
This commit is contained in:
@ -1260,7 +1260,7 @@ class StreamingProcessor {
|
|||||||
|
|
||||||
setFirstSwipe(messageId) {
|
setFirstSwipe(messageId) {
|
||||||
if (this.type !== 'swipe' && this.type !== 'impersonate') {
|
if (this.type !== 'swipe' && this.type !== 'impersonate') {
|
||||||
if (chat[messageId]['swipes'].length === 1 && chat[messageId]['swipe_id'] === 0) {
|
if (Array.isArray(chat[messageId]['swipes']) && chat[messageId]['swipes'].length === 1 && chat[messageId]['swipe_id'] === 0) {
|
||||||
chat[messageId]['swipes'][0] = chat[messageId]['mes'];
|
chat[messageId]['swipes'][0] = chat[messageId]['mes'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user