From a5e53dc5c7f9a6e2c7119ac8ccf4de7d50293de3 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 21 Apr 2021 13:01:29 +0530 Subject: [PATCH] ui: fix autogen form exec with action mapping options (#4909) For an auto-generated form, with list mapping of action, mapped API parameter was not getting added to the request when first index from the list is selected. Change added to fix this. Signed-off-by: Abhishek Kumar Co-authored-by: Rohit Yadav --- ui/src/views/AutogenView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index 795a5d85c70..dd92d72468b 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -989,7 +989,7 @@ export default { } break } - if (!input && !['tags'].includes(key)) { + if (!input && input !== 0 && !['tags'].includes(key)) { continue } if (action.mapping && key in action.mapping && action.mapping[key].options) {