mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-27 09:19:15 +08:00
Check if domain value is undefined or null.
This commit is contained in:
parent
84a78dbd0d
commit
7417dd3a85
@ -12,7 +12,7 @@ $(document).ready(function() {
|
|||||||
var domains = [];
|
var domains = [];
|
||||||
|
|
||||||
$.each(self.ft.rows.all, function(i, row){
|
$.each(self.ft.rows.all, function(i, row){
|
||||||
if($.inArray(row.val().domain, domains) === -1) domains.push(row.val().domain);
|
if((row.val().domain != null) && ($.inArray(row.val().domain, domains) === -1)) domains.push(row.val().domain);
|
||||||
});
|
});
|
||||||
|
|
||||||
$form_grp = $('<div/>', {'class': 'form-group'})
|
$form_grp = $('<div/>', {'class': 'form-group'})
|
||||||
|
Loading…
Reference in New Issue
Block a user