Skip to content

Commit

Permalink
Don't save connection details if field value is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Mar 22, 2024
1 parent 4acac11 commit 40ca3e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/resources/ui/connection/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,9 @@ submitConnectionButton.addEventListener("click", async function () {
} else if (ariaLabel === "Data source") {
currConnection["type"] = inputField.value;
} else {
currConnectionOptions[ariaLabel] = inputField.value;
if (inputField.value !== "") {
currConnectionOptions[ariaLabel] = inputField.value;
}
}
}
}
Expand Down

0 comments on commit 40ca3e4

Please sign in to comment.