From ffe9084296b100676bbbfb844091229dd757bdf7 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Sat, 14 Dec 2024 05:00:04 +1300 Subject: [PATCH] Fix null system message --- html/src/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/html/src/app.js b/html/src/app.js index 5fc5ed7c..9bdaaf91 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -1977,6 +1977,12 @@ speechSynthesis.getVoices(); break; } } + // delete any null in json + for (var key in json) { + if (json[key] === null) { + delete json[key]; + } + } if (typeof ref === 'undefined') { ref = { id: '',