Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.

Commit 466c36f

Browse files
Pearl1594davidjumaniPearl Dsilva
authored
autogen: Minor Fix in Autogen (#579)
Add defensive check Co-authored-by: davidjumani <dj.davidjumani1994@gmail.com> Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
1 parent 03f0f7a commit 466c36f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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.

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)