removed empty extra fields from being added to object.

This commit is contained in:
DESKTOP-GENO133\IvanPlex 2024-02-12 09:15:05 -07:00
parent bae1839c06
commit db737df712

View File

@ -400,7 +400,10 @@ function getAndValidateExtraFields() {
} else {
extraFieldInput.removeClass("is-invalid");
}
outputData.push({ name: extraFieldName, value: extraFieldValue });
//only push fields with value in them
if (extraFieldValue.trim() != '') {
outputData.push({ name: extraFieldName, value: extraFieldValue });
}
});
return { hasError: hasError, extraFields: outputData };
}