Skip to content

Commit

Permalink
fix(ui): prevent validation errors showing if inputs are empty (#5648)
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosPaunovic committed Oct 24, 2024
1 parent 427da64 commit 57c7389
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/utils/submitTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const cleanInputs = (inputsList, values) => {

export const inputsToFormDate = (submitor, inputsList, values) => {
values = cleanInputs(inputsList, values);
if(Object.keys(values).length === 0) return;

const formData = new FormData();
for (let input of inputsList || []) {
Expand Down

0 comments on commit 57c7389

Please sign in to comment.