From 4bab6009c13490a35be4327712f9e9243552d43c Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sun, 19 May 2024 01:33:05 +0200 Subject: Fix js error in gui, Revert to_image in gui --- g4f/gui/client/static/js/chat.v1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/gui/client/static/js') 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; -- cgit v1.2.3