mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: trim undefined error
This commit is contained in:
parent
246aaad987
commit
d6ed1bf37f
1 changed files with 1 additions and 1 deletions
|
|
@ -1210,7 +1210,7 @@ export class chatgpt extends plugin {
|
||||||
let quotemessage = []
|
let quotemessage = []
|
||||||
if (chatMessage?.quote) {
|
if (chatMessage?.quote) {
|
||||||
chatMessage.quote.forEach(function (item, index) {
|
chatMessage.quote.forEach(function (item, index) {
|
||||||
if (item.text.trim() !== '') {
|
if (item.text && item.text.trim() !== '') {
|
||||||
quotemessage.push(item)
|
quotemessage.push(item)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue