From 0763cf4ce0f6dac2e198a79542b849fadcef5ec2 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Thu, 13 Aug 2020 15:07:22 +0530 Subject: [PATCH] autogen: Minor Fix in Autogen (#579) Add defensive check Co-authored-by: davidjumani Co-authored-by: Pearl Dsilva Signed-off-by: Rohit Yadav --- ui/docs/development.md | 2 +- ui/src/views/AutogenView.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/docs/development.md b/ui/docs/development.md index 587194af5db..19fcc41929d 100644 --- a/ui/docs/development.md +++ b/ui/docs/development.md @@ -229,4 +229,4 @@ For example, ] ``` -Additional tabs can be defined by adding on to the tabs section. +Additional tabs can be defined by adding on to the tabs section. \ No newline at end of file diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index 0421ba49e08..fed6580b23e 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -749,7 +749,7 @@ export default { continue } param.opts = json[obj][res] - if (this.currentAction.mapping[param.name] && this.currentAction.mapping[param.name].filter) { + if (this.currentAction.mapping && this.currentAction.mapping[param.name] && this.currentAction.mapping[param.name].filter) { const filter = this.currentAction.mapping[param.name].filter param.opts = json[obj][res].filter(filter) }