From 28997fa8e11a6652f5eac4c990c060f9ab55b172 Mon Sep 17 00:00:00 2001 From: Laura Date: Mon, 11 Aug 2025 01:17:12 +0200 Subject: [PATCH] small fix --- static/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/chat.js b/static/js/chat.js index 96e2a29..0c7720a 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -281,7 +281,7 @@ if (!only || only === "text") { let text = this.#text; - if (this.#tags.includes("json")) { + if (text && this.#tags.includes("json")) { text = `\`\`\`json\n${text}\n\`\`\``; }