Skip to content

Commit

Permalink
fix: trim undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 authored Aug 25, 2023
1 parent 246aaad commit d6ed1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ export class chatgpt extends plugin {
let quotemessage = []
if (chatMessage?.quote) {
chatMessage.quote.forEach(function (item, index) {
if (item.text.trim() !== '') {
if (item.text && item.text.trim() !== '') {
quotemessage.push(item)
}
})
Expand Down

0 comments on commit d6ed1bf

Please sign in to comment.