Fixed input being sent with undefined

This commit is contained in:
Florian Bouillon 2019-11-15 11:11:07 +01:00
parent 2569decb62
commit 7edb0d5e0a
No known key found for this signature in database
GPG Key ID: B143FF27EF555D16

View File

@ -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