Merge branch 'Development' into SIPS-Development

This commit is contained in:
2025-04-15 13:22:35 +01:00
57 changed files with 1601 additions and 1055 deletions
@@ -627,7 +627,11 @@ export default async function ApiProxy(req, res) {
})
);
searchResultsObj = jsonpath("$..[?(@ && @.pinswg_name)]", searchResultsObj);
searchResultsObj = jsonpath({
path: "$..[?(@ && @.pinswg_name)]",
json: searchResultsObj,
sandbox: {},
});
searchResultsObj = searchResultsObj.filter((arr) => arr.incidentid != null);
+5 -1
View File
@@ -48,7 +48,11 @@ export default async function ApiProxy(req, res) {
const lpaList = await getLPA();
const lpaGUID = jsonpath('$..[?(@.name=="' + lpaid + '")]', lpaList);
const lpaGUID = jsonpath({
path: '$..[?(@.name=="' + lpaid + '")]',
json: lpaList,
sandbox: {},
});
//console.log(
// '$..[?(@.name="' + lpaid + '")]',
+5 -4
View File
@@ -76,10 +76,11 @@ let Home = (props) => {
let optionsStr = props.appealType.appealTypeOptions.value || {};
let selectedObj = jsonpath(
"$..[?(@.attributevalue=='" + router.query.apt + "')]",
optionsStr
);
let selectedObj = jsonpath({
path: "$..[?(@.attributevalue=='" + router.query.apt + "')]",
json: optionsStr,
sandbox: {},
});
//let optionsTitleObj = [];
+5 -4
View File
@@ -68,10 +68,11 @@ let Home = (props) => {
let optionsStr = props.appealType.appealTypeOptions.value;
let selectedObj = jsonpath(
"$..[?(@.attributevalue=='" + router.query.apt + "')]",
optionsStr
);
let selectedObj = jsonpath({
path: "$..[?(@.attributevalue=='" + router.query.apt + "')]",
json: optionsStr,
sandbox: {},
});
//let optionsTitleObj = [];