diff --git a/.env.local b/.env.local index ed13161f..035eccf5 100644 --- a/.env.local +++ b/.env.local @@ -1,9 +1,9 @@ // dev -//RELAY_ROOT = https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/ -//RELAYURI = "dev-pedw-ns.servicebus.windows.net" -//RELAYPATH = "dev-pedw-hc" -//SASKEY = "Ml0Y/S/nfRcmIrHFRkO4jNm2J3iH52TSxPiak7+E1+Y=" -//SASKEYNAME = "devpedwnspolicy" +RELAY_ROOT = https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/ +RELAYURI = "dev-pedw-ns.servicebus.windows.net" +RELAYPATH = "dev-pedw-hc" +SASKEY = "Ml0Y/S/nfRcmIrHFRkO4jNm2J3iH52TSxPiak7+E1+Y=" +SASKEYNAME = "devpedwnspolicy" PORT= "3000" @@ -23,11 +23,11 @@ I18N_DOMAIN = "cymru.local" //preprod -RELAY_ROOT = https://pp-pedw-ns.servicebus.windows.net/pp-pedw-hc/ -RELAYURI = "pp-pedw-ns.servicebus.windows.net" -RELAYPATH = "pp-pedw-hc" -SASKEY = "JzrOYfMTsGBD1cZHH2nkzqsbfDCqg0brO6jyiIDNVPo=" -SASKEYNAME = "pppedwnspolicy" +//RELAY_ROOT = https://pp-pedw-ns.servicebus.windows.net/pp-pedw-hc/ +//RELAYURI = "pp-pedw-ns.servicebus.windows.net" +//RELAYPATH = "pp-pedw-hc" +//SASKEY = "JzrOYfMTsGBD1cZHH2nkzqsbfDCqg0brO6jyiIDNVPo=" +//SASKEYNAME = "pppedwnspolicy" GOOGLE_TAG_MANAGER = GTM-T78CBC3 diff --git a/actions/index.js b/actions/index.js index 8e9d0c3f..3dc36942 100644 --- a/actions/index.js +++ b/actions/index.js @@ -642,7 +642,7 @@ export const getLPA = (token) => { azureHeaders(token) ) .then((res) => { - // console.log(res.data); + console.log(res.data); return res.data; }) .catch((error) => { diff --git a/components/case/documents.js b/components/case/documents.js index 0b6c5226..bfcc9a59 100644 --- a/components/case/documents.js +++ b/components/case/documents.js @@ -52,9 +52,13 @@ const DocumentDetails = (props) => { return ( <>
- {t("case:documents-count-label-1")}{" "} + {documentDetailsObj["@odata.count"] > 1 + ? t("case:documents-count-label-1") + : t("case:documents-count-label-1a")}{" "} {documentDetailsObj["@odata.count"]}{" "} - {t("case:documents-count-label-2")} + {documentDetailsObj["@odata.count"] > 1 + ? t("case:documents-count-label-2") + : t("case:documents-count-label-2a")}
- {router.locale == "cy" - ? detailsObj.pinswg_projectdescription.split( - ";" - )[1] - : detailsObj.pinswg_projectdescription.split( - ";" - )[0]} -
+ {detailsObj.pinswg_projectdescription != null || + detailsObj.pinswg_projectlocation != null ? ( ++ {detailsObj.pinswg_projectdescription != null + ? router.locale == "cy" + ? detailsObj.pinswg_projectdescription.split( + ";" + )[1] + : detailsObj.pinswg_projectdescription.split( + ";" + )[0] + : ""} +
-- {" "} - {router.locale == "cy" - ? detailsObj.pinswg_projectlocation.split( - ";" - )[1] - : detailsObj.pinswg_projectlocation.split( - ";" - )[0]} -
++ {detailsObj.pinswg_projectlocation != null + ? router.locale == "cy" + ? detailsObj.pinswg_projectlocation.split( + ";" + )[1] + : detailsObj.pinswg_projectlocation.split( + ";" + )[0] + : ""} +
+- {router.locale == "cy" - ? detailsObj.pinswg_projectdescription.split( - ";" - )[1] - : detailsObj.pinswg_projectdescription.split( - ";" - )[0]} -
+ {detailsObj.pinswg_projectdescription != null || + detailsObj.pinswg_projectlocation != null ? ( ++ {detailsObj.pinswg_projectdescription != null + ? router.locale == "cy" + ? detailsObj.pinswg_projectdescription.split( + ";" + )[1] + : detailsObj.pinswg_projectdescription.split( + ";" + )[0] + : ""} +
-- {" "} - {router.locale == "cy" - ? detailsObj.pinswg_projectlocation.split( - ";" - )[1] - : detailsObj.pinswg_projectlocation.split( - ";" - )[0]} -
++ {detailsObj.pinswg_projectlocation != null + ? router.locale == "cy" + ? detailsObj.pinswg_projectlocation.split( + ";" + )[1] + : detailsObj.pinswg_projectlocation.split( + ";" + )[0] + : ""} +
+- {router.locale == "cy" - ? detailsObj.pinswg_projectdescription.split( - ";" - )[1] - : detailsObj.pinswg_projectdescription.split( - ";" - )[0]} -
+ {detailsObj.pinswg_projectdescription != null || + detailsObj.pinswg_projectlocation != null ? ( ++ {detailsObj.pinswg_projectdescription != null + ? router.locale == "cy" + ? detailsObj.pinswg_projectdescription.split( + ";" + )[1] + : detailsObj.pinswg_projectdescription.split( + ";" + )[0] + : ""} +
-- {" "} - {router.locale == "cy" - ? detailsObj.pinswg_projectlocation.split( - ";" - )[1] - : detailsObj.pinswg_projectlocation.split( - ";" - )[0]} -
++ {detailsObj.pinswg_projectlocation != null + ? router.locale == "cy" + ? detailsObj.pinswg_projectlocation.split( + ";" + )[1] + : detailsObj.pinswg_projectlocation.split( + ";" + )[0] + : ""} +
+- {router.locale == "cy" - ? detailsObj.pinswg_projectdescription.split( - ";" - )[1] - : detailsObj.pinswg_projectdescription.split( - ";" - )[0]} -
+ {detailsObj.pinswg_projectdescription != null || + detailsObj.pinswg_projectlocation != null ? ( ++ {detailsObj.pinswg_projectdescription != null + ? router.locale == "cy" + ? detailsObj.pinswg_projectdescription.split( + ";" + )[1] + : detailsObj.pinswg_projectdescription.split( + ";" + )[0] + : ""} +
-- {" "} - {router.locale == "cy" - ? detailsObj.pinswg_projectlocation.split( - ";" - )[1] - : detailsObj.pinswg_projectlocation.split( - ";" - )[0]} -
++ {detailsObj.pinswg_projectlocation != null + ? router.locale == "cy" + ? detailsObj.pinswg_projectlocation.split( + ";" + )[1] + : detailsObj.pinswg_projectlocation.split( + ";" + )[0] + : ""} +
+