uodated queries to sort deep recursion

This commit is contained in:
2025-04-16 08:44:45 +01:00
parent 420501dbf1
commit d882e65071
54 changed files with 270 additions and 267 deletions
+2 -2
View File
@@ -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=",
+1 -1
View File
@@ -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,
});
+1 -1
View File
@@ -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,
});