This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 1f637d0651146d065a870003f55003bc4c64c627 Author: Daniel Gruno <[email protected]> AuthorDate: Mon Sep 7 03:41:36 2020 +0200 list domain may not exist at all --- webui/js/ponymail.js | 2 +- webui/js/source/preferences.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js index a9528ba..5e4ed34 100644 --- a/webui/js/ponymail.js +++ b/webui/js/ponymail.js @@ -2468,7 +2468,7 @@ function init_preferences(state, json) { if (json.lists[current_domain] && json.lists[current_domain][current_list] != undefined) { post_prime(state); } else {// otherwise, bork - if (current_list.length > 0 && Object.keys(json.lists[current_domain]).length > 0) { + if (current_list.length > 0 && (!json.lists[current_domain] || Object.keys(json.lists[current_domain]).length > 0)) { let eml = document.getElementById('emails'); eml.innerText = "We couldn't find this list. It may not exist or require you to be logged in with specific credentials."; eml.inject(new HTML('br')); diff --git a/webui/js/source/preferences.js b/webui/js/source/preferences.js index 3c1ccde..7e950ae 100644 --- a/webui/js/source/preferences.js +++ b/webui/js/source/preferences.js @@ -71,7 +71,7 @@ function init_preferences(state, json) { if (json.lists[current_domain] && json.lists[current_domain][current_list] != undefined) { post_prime(state); } else {// otherwise, bork - if (current_list.length > 0 && Object.keys(json.lists[current_domain]).length > 0) { + if (current_list.length > 0 && (!json.lists[current_domain] || Object.keys(json.lists[current_domain]).length > 0)) { let eml = document.getElementById('emails'); eml.innerText = "We couldn't find this list. It may not exist or require you to be logged in with specific credentials."; eml.inject(new HTML('br'));
