fixed undefined mail sig load

This commit is contained in:
Kevin Froman 2020-03-22 22:04:20 -05:00
parent c7b8f9bed6
commit 77b24d022f

View File

@ -17,7 +17,7 @@ fetch('/config/get/mail', {
if (mailSettings.notificationSetting === false){
document.getElementById('notificationSetting').checked = false
}
if (mailSettings.signature !== false){
if (typeof mailSettings.signature != undefined && mailSettings.signature != null && mailSettings.signature != ""){
document.getElementById('mailSignatureSetting').value = mailSettings.signature
}
})