This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit fb501941ba6c30ee1c59e3475d57d93edf890e37
Author: Sebb <[email protected]>
AuthorDate: Tue Nov 23 17:02:08 2021 +0000

    Regen JS
---
 webui/js/ponymail.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index de51e17..cb225d9 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -16,7 +16,7 @@
 */
 // THIS IS AN AUTOMATICALLY COMBINED FILE. PLEASE EDIT THE source/ FILES!
 
-const PONYMAIL_REVISION = "7ec8504";
+const PONYMAIL_REVISION = "e7a03d9";
 
 
 
@@ -4310,8 +4310,12 @@ async function sidebar_stats(json) {
         }
     }
 
+    let wc = document.getElementById('sidebar_wordcloud');
     if (!json.emails || isHash(json.emails) || json.emails.length == 0) {
         obj.innerText = "No emails found...";
+        if (wc) {
+            wc.innerHTML = "";
+        }
         return;
     }
 
@@ -4344,7 +4348,6 @@ async function sidebar_stats(json) {
     }
 
     // Word cloud, if applicable
-    let wc = document.getElementById('sidebar_wordcloud');
     if (wc && json.cloud) {
         wc.innerHTML = "";
         wc.inject(new HTML('h5', {}, "Popular topics:"));

Reply via email to