Skip to content

Commit 0763cf4

Browse files
Pearl1594davidjumaniPearl Dsilva
authored andcommitted
autogen: Minor Fix in Autogen (apache#579)
Add defensive check Co-authored-by: davidjumani <dj.davidjumani1994@gmail.com> Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 3ced416 commit 0763cf4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ui/docs/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,4 @@ For example,
229229
]
230230
```
231231

232-
Additional tabs can be defined by adding on to the tabs section.
232+
Additional tabs can be defined by adding on to the tabs section.

ui/src/views/AutogenView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ export default {
749749
continue
750750
}
751751
param.opts = json[obj][res]
752-
if (this.currentAction.mapping[param.name] && this.currentAction.mapping[param.name].filter) {
752+
if (this.currentAction.mapping && this.currentAction.mapping[param.name] && this.currentAction.mapping[param.name].filter) {
753753
const filter = this.currentAction.mapping[param.name].filter
754754
param.opts = json[obj][res].filter(filter)
755755
}

0 commit comments

Comments
 (0)