diff --git a/ayanova/src/api/enums.js b/ayanova/src/api/enums.js index abe5c07c..1e68aee0 100644 --- a/ayanova/src/api/enums.js +++ b/ayanova/src/api/enums.js @@ -4,6 +4,11 @@ export default { get(enumKey, enumValue) { enumKey = enumKey.toLowerCase(); if (enumKey != "authorizationroles") { + if (window.$gz.store.state.enums[enumKey] == undefined) { + throw "ERROR enums::get -> enumKey " + + enumKey + + " is missing from store"; + } return window.$gz.store.state.enums[enumKey][enumValue]; } else { let ret = []; diff --git a/ayanova/src/components/currency-control.vue b/ayanova/src/components/currency-control.vue index 3ee701b8..3a335783 100644 --- a/ayanova/src/components/currency-control.vue +++ b/ayanova/src/components/currency-control.vue @@ -2,7 +2,8 @@
diff --git a/ayanova/src/components/duration-control.vue b/ayanova/src/components/duration-control.vue index eb54cdcb..e0e72ad0 100644 --- a/ayanova/src/components/duration-control.vue +++ b/ayanova/src/components/duration-control.vue @@ -3,7 +3,7 @@ {{ label }} -