diff --git a/frontend/components/DynamicForm.vue b/frontend/components/DynamicForm.vue index 35c421f3..deb8a8b8 100644 --- a/frontend/components/DynamicForm.vue +++ b/frontend/components/DynamicForm.vue @@ -25,7 +25,11 @@ export default { }, methods: { updateForm (fieldName, v) { - if (!v) { + if (v===false) { + // bool false value, leave it as is + this.$set(this.formData, fieldName, v) + } else if(!v) { + // empty value, remove it this.$delete(this.formData, fieldName) } else { this.$set(this.formData, fieldName, v)