diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index ebbbd42b1..453c9205f 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -1998,6 +1998,9 @@ async function addSwipeCallback(_, arg) { lastMessage.swipe_info = [{}]; lastMessage.swipe_id = 0; } + if (!Array.isArray(lastMessage.swipe_info)) { + lastMessage.swipe_info = lastMessage.swipes.map(() => ({})); + } lastMessage.swipes.push(arg); lastMessage.swipe_info.push({