mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
removed empty extra fields from being added to object.
This commit is contained in:
parent
bae1839c06
commit
db737df712
@ -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 };
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user