Skip to content

Commit

Permalink
Propose the 'Not set' value only if flag is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Oct 6, 2023
1 parent 7934fc9 commit 169730d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/components/NewRequest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@
if (field.type == "string-enum") {
component = "b-form-select";
options = field.choices.map(function (option) { return {text: option, value: option}; });
options.push({text: "Not set", value: undefined});
if (field.required != true) {
options.push({text: "Not set", value: undefined});
}
}
if (field.type == "text") {
Expand Down

0 comments on commit 169730d

Please sign in to comment.