diff --git a/pages/clients.vue b/pages/clients.vue index 83de69b..d462765 100644 --- a/pages/clients.vue +++ b/pages/clients.vue @@ -84,7 +84,7 @@ const formData = ref({ function normalizeForm() { for (const i in formData.value) - formData.value[i] = formData.value[i] === "" ? null : formData.value[i]; + formData.value[i] = formData.value[i] === "" || formData.value[i] === undefined ? null : formData.value[i]; } async function handleSubmit() {