You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/08/13 09:37:30 UTC
[cloudstack-primate] branch master updated: autogen: Minor Fix in
Autogen (#579)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git
The following commit(s) were added to refs/heads/master by this push:
new 466c36f autogen: Minor Fix in Autogen (#579)
466c36f is described below
commit 466c36f206fd1e59166614539ef45dda946e2bad
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Thu Aug 13 15:07:22 2020 +0530
autogen: Minor Fix in Autogen (#579)
Add defensive check
Co-authored-by: davidjumani <dj...@gmail.com>
Co-authored-by: Pearl Dsilva <pe...@shapeblue.com>
---
docs/development.md | 2 +-
src/views/AutogenView.vue | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/development.md b/docs/development.md
index 587194a..19fcc41 100644
--- a/docs/development.md
+++ b/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/src/views/AutogenView.vue b/src/views/AutogenView.vue
index 0421ba4..fed6580 100644
--- a/src/views/AutogenView.vue
+++ b/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)
}