From 169730dd597dd4d79402a2aa837204519334463d Mon Sep 17 00:00:00 2001 From: benoit74 Date: Fri, 6 Oct 2023 13:13:45 +0200 Subject: [PATCH] Propose the 'Not set' value only if flag is not required --- ui/src/components/NewRequest.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/components/NewRequest.vue b/ui/src/components/NewRequest.vue index 79b2815..468a811 100644 --- a/ui/src/components/NewRequest.vue +++ b/ui/src/components/NewRequest.vue @@ -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") {