From 50f539e91f58ddb09943fab54f2562905c67f4bb Mon Sep 17 00:00:00 2001 From: "brian.mulier" Date: Wed, 30 Oct 2024 21:05:58 +0100 Subject: [PATCH] fix(ui): prevent duplicate input validations + avoid error spamming + send boolean inputs properly closes #5731 --- ui/src/components/inputs/InputsForm.vue | 1 - ui/src/utils/submitTask.js | 7 ------- 2 files changed, 8 deletions(-) diff --git a/ui/src/components/inputs/InputsForm.vue b/ui/src/components/inputs/InputsForm.vue index c6acb15a05a..93246c7a60c 100644 --- a/ui/src/components/inputs/InputsForm.vue +++ b/ui/src/components/inputs/InputsForm.vue @@ -213,7 +213,6 @@ emits: ["update:modelValue", "confirm"], created() { this.inputsList.push(...(this.initialInputs ?? [])); - this.validateInputs(); }, mounted() { setTimeout(() => { diff --git a/ui/src/utils/submitTask.js b/ui/src/utils/submitTask.js index 4c1c5a7edd4..cd7635d21a0 100644 --- a/ui/src/utils/submitTask.js +++ b/ui/src/utils/submitTask.js @@ -33,13 +33,6 @@ export const inputsToFormDate = (submitor, inputsList, values) => { } else { formData.append(inputName, inputValue); } - } else if (input.required) { - submitor.$toast().error( - submitor.$t("invalid field", {name: inputName}), - submitor.$t("form error") - ) - - return; } } return formData;