mirror of
https://github.com/dzeiocom/FormManager.git
synced 2025-04-25 04:12:11 +00:00
Fixed input being sent with undefined
This commit is contained in:
parent
2569decb62
commit
7edb0d5e0a
@ -198,7 +198,8 @@ export default class FormManager {
|
||||
for (const name in this.inputs) {
|
||||
if (this.inputs.hasOwnProperty(name)) {
|
||||
const input = this.inputs[name];
|
||||
jsonObject[name] = input.getValue()
|
||||
const val = input.getValue()
|
||||
if (val != undefined) jsonObject[name] = val
|
||||
}
|
||||
}
|
||||
return jsonObject
|
||||
|
Loading…
x
Reference in New Issue
Block a user