Skip to content

Commit

Permalink
fix(ui): prevent duplicate input validations + avoid error spamming +…
Browse files Browse the repository at this point in the history
… send boolean inputs properly

closes #5731
  • Loading branch information
brian-mulier-p committed Oct 30, 2024
1 parent 6103b48 commit 50f539e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion ui/src/components/inputs/InputsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@
emits: ["update:modelValue", "confirm"],
created() {
this.inputsList.push(...(this.initialInputs ?? []));
this.validateInputs();
},
mounted() {
setTimeout(() => {
Expand Down
7 changes: 0 additions & 7 deletions ui/src/utils/submitTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 50f539e

Please sign in to comment.