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>
This commit is contained in:
Abhishek Kumar 2021-04-21 13:01:29 +05:30 committed by GitHub
parent 40a2ca4e0a
commit a5e53dc5c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {