autogenview: fix fill edit/update forms (#441)

Fix update host form issue (update forms in general)
Fixes #417

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Abhishek Kumar 2020-06-24 14:32:08 +05:30 committed by Rohit Yadav
parent 28b1b9dbe8
commit 1a3e659958
1 changed files with 1 additions and 1 deletions

View File

@ -738,7 +738,7 @@ export default {
this.currentAction.paramFields.map(field => {
let fieldValue = null
let fieldName = null
if (field.type === 'list' || field.name === 'account' || (this.currentAction.mapping && field.name in this.currentAction.mapping)) {
if (field.type === 'list' || field.name === 'account') {
fieldName = field.name.replace('ids', 'name').replace('id', 'name')
} else {
fieldName = field.name