changes sandbox: {} to eval: true, caused errors in evaluated queries
This commit is contained in:
@@ -20,7 +20,7 @@ export const getFormCollection = (formtype) => {
|
||||
const collectionName = jsonpath({
|
||||
path: "$..[?(@.LogicalName=='" + formtype + "')]",
|
||||
json: data,
|
||||
sandbox: {},
|
||||
eval: true,
|
||||
});
|
||||
return collectionName[0];
|
||||
};
|
||||
@@ -29,7 +29,7 @@ export const getFormCollectionByID = (appealTypeID) => {
|
||||
const collectionName = jsonpath({
|
||||
path: "$..[?(@.appealTypeID =='" + appealTypeID + "')]",
|
||||
json: data,
|
||||
sandbox: {},
|
||||
eval: true,
|
||||
});
|
||||
return collectionName[0];
|
||||
};
|
||||
@@ -38,7 +38,7 @@ export const getFormIDByLogicalName = (appealTypeLogicalName) => {
|
||||
const collectionName = jsonpath({
|
||||
path: "$..[?(@.LogicalName =='" + appealTypeLogicalName + "')]",
|
||||
json: data,
|
||||
sandbox: {},
|
||||
eval: true,
|
||||
});
|
||||
return collectionName[0];
|
||||
};
|
||||
@@ -47,7 +47,7 @@ export const getPickListLabel = (data, picklistType, picklistID) => {
|
||||
const pickListData = jsonpath({
|
||||
path: "$..[?(@.LogicalName=='" + picklistType + "')]",
|
||||
json: data,
|
||||
sandbox: {},
|
||||
eval: true,
|
||||
});
|
||||
|
||||
const pickListLabel = jsonpath({
|
||||
@@ -57,7 +57,7 @@ export const getPickListLabel = (data, picklistType, picklistID) => {
|
||||
"')].Label.LocalizedLabels..Label",
|
||||
|
||||
json: pickListData,
|
||||
sandbox: {},
|
||||
eval: true,
|
||||
});
|
||||
return pickListLabel[0];
|
||||
};
|
||||
@@ -66,7 +66,7 @@ export const getRadioLabel = (data, radiotListName, radioListID) => {
|
||||
const radioListData = jsonpath({
|
||||
path: "$..[?(@.LogicalName=='" + radiotListName + "')]",
|
||||
json: data,
|
||||
sandbox: {},
|
||||
eval: true,
|
||||
});
|
||||
|
||||
const pickListLabel = jsonpath({
|
||||
@@ -76,7 +76,7 @@ export const getRadioLabel = (data, radiotListName, radioListID) => {
|
||||
"')].Label.LocalizedLabels..Label",
|
||||
|
||||
json: radioListData,
|
||||
sandbox: {},
|
||||
eval: true,
|
||||
});
|
||||
return pickListLabel[0];
|
||||
};
|
||||
@@ -340,7 +340,7 @@ export const getProgressObj = (
|
||||
datafieldname[0].value +
|
||||
"')]",
|
||||
json: mandatoryFieldsData,
|
||||
sandbox: {},
|
||||
eval: true,
|
||||
});
|
||||
|
||||
if (datafieldname[0].value.includes("pinswg_fileUpload")) {
|
||||
|
||||
Reference in New Issue
Block a user