Skip to content

Commit a5e53dc

Browse files
shwstppryadvr
andauthored
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 <abhishek.mrt22@gmail.com> Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 40a2ca4 commit a5e53dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/AutogenView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ export default {
989989
}
990990
break
991991
}
992-
if (!input && !['tags'].includes(key)) {
992+
if (!input && input !== 0 && !['tags'].includes(key)) {
993993
continue
994994
}
995995
if (action.mapping && key in action.mapping && action.mapping[key].options) {

0 commit comments

Comments
 (0)