Check if domain value is undefined or null.

master
Kraeutergarten 2019-05-16 10:15:37 +02:00
parent 84a78dbd0d
commit 7417dd3a85
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ $(document).ready(function() {
var domains = [];
$.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'})