summaryrefslogtreecommitdiffstats
path: root/g4f/gui/client
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-05-19 01:33:05 +0200
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-05-19 01:33:05 +0200
commit4bab6009c13490a35be4327712f9e9243552d43c (patch)
tree53b9ec0ecfdb9788fee9a47701bad1f9cbae9674 /g4f/gui/client
parentFix upload image (diff)
downloadgpt4free-4bab6009c13490a35be4327712f9e9243552d43c.tar
gpt4free-4bab6009c13490a35be4327712f9e9243552d43c.tar.gz
gpt4free-4bab6009c13490a35be4327712f9e9243552d43c.tar.bz2
gpt4free-4bab6009c13490a35be4327712f9e9243552d43c.tar.lz
gpt4free-4bab6009c13490a35be4327712f9e9243552d43c.tar.xz
gpt4free-4bab6009c13490a35be4327712f9e9243552d43c.tar.zst
gpt4free-4bab6009c13490a35be4327712f9e9243552d43c.zip
Diffstat (limited to 'g4f/gui/client')
-rw-r--r--g4f/gui/client/static/js/chat.v1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js
index 46d5039e..1d0b0dce 100644
--- a/g4f/gui/client/static/js/chat.v1.js
+++ b/g4f/gui/client/static/js/chat.v1.js
@@ -302,7 +302,7 @@ const prepare_messages = (messages, message_index = -1) => {
}
messages.forEach((new_message) => {
// Include only not regenerated messages
- if (!new_message.regenerate) {
+ if (new_message && !new_message.regenerate) {
// Remove generated images from history
new_message.content = filter_message(new_message.content);
delete new_message.provider;