Check if domain value is undefined or null.

This commit is contained in:
Kraeutergarten 2019-05-16 10:15:37 +02:00
parent 84a78dbd0d
commit 7417dd3a85

View File

@ -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'})