removed empty extra fields from being added to object.
This commit is contained in:
@@ -400,7 +400,10 @@ function getAndValidateExtraFields() {
|
||||
} else {
|
||||
extraFieldInput.removeClass("is-invalid");
|
||||
}
|
||||
//only push fields with value in them
|
||||
if (extraFieldValue.trim() != '') {
|
||||
outputData.push({ name: extraFieldName, value: extraFieldValue });
|
||||
}
|
||||
});
|
||||
return { hasError: hasError, extraFields: outputData };
|
||||
}
|
||||
Reference in New Issue
Block a user