update jsonpath library

This commit is contained in:
2024-02-08 14:28:40 +00:00
parent f034f4be3d
commit 2af463fbe9
67 changed files with 961 additions and 966 deletions
+7 -7
View File
@@ -1,4 +1,4 @@
import jsonpath from "jsonpath";
import { JSONPath as jsonpath } from "jsonpath-plus";
import useTranslation from "next-translate/useTranslation";
import { useRouter } from "next/router";
import { connect } from "react-redux";
@@ -101,12 +101,12 @@ let CreateCase = (props) => {
value={optionsObj[key].accountid}
>
{router.locale == "cy"
? jsonpath.query(
transLookup,
? jsonpath(
'$..[?(@.value=="' +
optionsObj[key]
.name +
'")].value_cy'
'")].value_cy',
transLookup
)
: optionsObj[key].name}
</option>
@@ -192,12 +192,12 @@ let CreateCase = (props) => {
)
? ""
: router.locale == "cy"
? jsonpath.query(
transLookup,
? jsonpath(
'$..[?(@.value=="' +
optionsObj[key]
.value +
'")].value_cy'
'")].value_cy',
transLookup
)
: optionsObj[key].value}
</option>