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 c14b1adc0c6c50819a0ad74dadebda292b19c027
Author: Sebb <[email protected]>
AuthorDate: Thu Dec 16 19:20:45 2021 +0000

    Add missing let
---
 webui/js/source/mgmt.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/webui/js/source/mgmt.js b/webui/js/source/mgmt.js
index 9bb36f3..5bc3a03 100644
--- a/webui/js/source/mgmt.js
+++ b/webui/js/source/mgmt.js
@@ -30,7 +30,7 @@ async function admin_del_attachment(hash) {
         }
     }
     admin_email_meta.attachments = new_attach;
-    formdata = JSON.stringify({
+    let formdata = JSON.stringify({
         action: "delatt",
         document: hash
     });
@@ -53,7 +53,7 @@ async function admin_hide_email() {
     if (!confirm("Are you sure you wish to hide this email from the 
archives?")) {
         return
     }
-    formdata = JSON.stringify({
+    let formdata = JSON.stringify({
         action: "hide",
         document: admin_current_email
     });
@@ -70,7 +70,7 @@ async function admin_unhide_email() {
     if (!confirm("Are you sure you wish to unhide this email?")) {
         return
     }
-    formdata = JSON.stringify({
+    let formdata = JSON.stringify({
         action: "unhide",
         document: admin_current_email
     });
@@ -89,7 +89,7 @@ async function admin_delete_email() {
     if (!confirm("Are you sure you wish to remove this email from the 
archives?")) {
         return
     }
-    formdata = JSON.stringify({
+    let formdata = JSON.stringify({
         action: "delete",
         document: admin_current_email
     });

Reply via email to