This commit is contained in:
2020-04-02 14:07:02 +00:00
parent 7f947c23ef
commit 1384aef052
2 changed files with 11 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ function addDataKeyNames(obj) {
//iterate the array of objects
//if it has a "type" property then it's a custom field so add its data key name
for (var i = 0; i < obj.length; i++) {
for (let i = 0; i < obj.length; i++) {
if (obj[i].type) {
obj[i]["dataKey"] = "c" + parseInt(obj[i].fld.replace(/^\D+/g, ""));
}
@@ -56,7 +56,7 @@ export default {
"]";
}
var template = window.$gz.store.state.formCustomTemplate[formKey];
let template = window.$gz.store.state.formCustomTemplate[formKey];
if (template === undefined) {
throw "ERROR form-custom-template::getFieldTemplateValue -> Store is missing form template for [" +
formKey +
@@ -65,12 +65,12 @@ export default {
//_https://lodash.com/docs#find
//Note that not every field being requested will exist so it's valid to return undefined
var templateItem = window.$gz._.find(template, ["fld", fieldKey]);
let templateItem = window.$gz._.find(template, ["fld", fieldKey]);
return templateItem;
},
getTemplateConcurrencyToken(formKey) {
var tok =
let tok =
window.$gz.store.state.formCustomTemplate[formKey + "_concurrencyToken"];
if (tok === undefined) {
throw "ERROR form-custom-template::getTemplateConcurrencyToken -> Store is missing concurrency token for [" +