uodated queries to sort deep recursion
This commit is contained in:
@@ -49,13 +49,13 @@ export default async function ApiProxy(req, res) {
|
||||
const lpaList = await getLPA();
|
||||
|
||||
const lpaGUID = jsonpath({
|
||||
path: '$..[?(@.name=="' + lpaid + '")]',
|
||||
path: '$..[?(@ && @.name=="' + lpaid + '")]',
|
||||
json: lpaList,
|
||||
eval: true,
|
||||
});
|
||||
|
||||
//console.log(
|
||||
// '$..[?(@.name="' + lpaid + '")]',
|
||||
// '$..[?(@ && @.name="' + lpaid + '")]',
|
||||
// lpaList,
|
||||
// lpaid,
|
||||
// "LPAGUID=",
|
||||
|
||||
@@ -77,7 +77,7 @@ let Home = (props) => {
|
||||
let optionsStr = props.appealType.appealTypeOptions.value || {};
|
||||
|
||||
let selectedObj = jsonpath({
|
||||
path: "$..[?(@.attributevalue=='" + router.query.apt + "')]",
|
||||
path: "$..[?(@ && @.attributevalue=='" + router.query.apt + "')]",
|
||||
json: optionsStr,
|
||||
eval: true,
|
||||
});
|
||||
|
||||
@@ -69,7 +69,7 @@ let Home = (props) => {
|
||||
let optionsStr = props.appealType.appealTypeOptions.value;
|
||||
|
||||
let selectedObj = jsonpath({
|
||||
path: "$..[?(@.attributevalue=='" + router.query.apt + "')]",
|
||||
path: "$..[?(@ && @.attributevalue=='" + router.query.apt + "')]",
|
||||
json: optionsStr,
|
||||
eval: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user