Skip to content

Commit

Permalink
Update packages (+ fix chat.js issue when the message type is != 'text')
Browse files Browse the repository at this point in the history
  • Loading branch information
csavelief committed Nov 14, 2024
1 parent 382f9f6 commit 63f1c09
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/cyber_buddy/botman/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@
}
// ========== HACK : HIDE EMPTY QUESTIONS / BEGIN ==========
if (t && Array.isArray(t.messages)) {
t.messages = t.messages.filter(message => message.type === 'text' && message.text.trim().length > 0);
t.messages = t.messages.filter(message => !message.type || message.type !== 'text' || (message.type === 'text' && message.text.trim().length > 0));
}
// ========== HACK : HIDE EMPTY QUESTIONS / END ==========
return t
Expand Down

0 comments on commit 63f1c09

Please sign in to comment.