Merged PR 2442: remove lodash dependecies on _.has
Related work items: #23754
This commit is contained in:
@@ -5,7 +5,7 @@ import { useRouter } from "next/router";
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import { connect } from "react-redux";
|
||||
import transLookup from "../../data/lookuptranslations.json";
|
||||
import { formatDates, getDocLink } from "../utils";
|
||||
import { formatDates, getDocLink, hasOwn } from "../utils";
|
||||
import PaginationControl from "./pagination";
|
||||
import { sendGAEvent } from "@next/third-parties/google";
|
||||
|
||||
@@ -349,7 +349,7 @@ const DocumentDetails = (props) => {
|
||||
)}
|
||||
:
|
||||
</span>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_name"
|
||||
)
|
||||
@@ -364,7 +364,7 @@ const DocumentDetails = (props) => {
|
||||
)}
|
||||
:
|
||||
</span>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_name"
|
||||
)
|
||||
@@ -405,7 +405,7 @@ const DocumentDetails = (props) => {
|
||||
:
|
||||
</span>
|
||||
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_latestpublisheddate"
|
||||
)
|
||||
@@ -785,7 +785,7 @@ const DocumentDetails = (props) => {
|
||||
)}
|
||||
:
|
||||
</span>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_name"
|
||||
)
|
||||
@@ -801,7 +801,7 @@ const DocumentDetails = (props) => {
|
||||
)}
|
||||
:
|
||||
</span>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_name"
|
||||
)
|
||||
@@ -844,7 +844,7 @@ const DocumentDetails = (props) => {
|
||||
:
|
||||
</span>
|
||||
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_latestpublisheddate"
|
||||
)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import _ from "lodash";
|
||||
import useTranslation from "next-translate/useTranslation";
|
||||
import { useRouter } from "next/router";
|
||||
import { useState } from "react";
|
||||
@@ -13,6 +12,7 @@ import {
|
||||
bytesToSize,
|
||||
getThumbnailIconByExtension,
|
||||
formatDates,
|
||||
hasOwn,
|
||||
updateLinks,
|
||||
getDocLink
|
||||
} from "../../utils";
|
||||
@@ -399,7 +399,7 @@ const RepCompleteSubmit = (props) => {
|
||||
</a> */}
|
||||
</dd>
|
||||
</div>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
repFormData,
|
||||
"representationOnBehalfOf"
|
||||
) && (
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { JSONPath as jsonpath } from "jsonpath-plus";
|
||||
import useTranslation from "next-translate/useTranslation";
|
||||
import { useRouter } from "next/router";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const RepDetails = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -17,8 +18,8 @@ const RepDetails = (props) => {
|
||||
? props.myRepresentations.myRepresentations
|
||||
: props.searchResultsObj.searchDetailsObj
|
||||
: props.currentType == "watchedCases"
|
||||
? props.props.props.props.watchedCases.watchedCasesDetails
|
||||
: props.props.props.searchResultsObj.searchDetailsObj;
|
||||
? props.props.props.props.watchedCases.watchedCasesDetails
|
||||
: props.props.props.searchResultsObj.searchDetailsObj;
|
||||
|
||||
var detailsObj = {};
|
||||
|
||||
@@ -31,7 +32,7 @@ const RepDetails = (props) => {
|
||||
detailsObj = jsonpath({
|
||||
path: '$..[?(@ && @.ticketnumber=="' + ticketnumber + '")]',
|
||||
json: setCaseDetailsObj,
|
||||
eval: true,
|
||||
eval: true
|
||||
});
|
||||
|
||||
detailsObj = detailsObj[0];
|
||||
@@ -61,34 +62,43 @@ const RepDetails = (props) => {
|
||||
{t("case:summary-site-address-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(detailsObj, "pinswg_siteaddressline1")
|
||||
{hasOwn(detailsObj, "pinswg_siteaddressline1")
|
||||
? detailsObj.pinswg_siteaddressline1
|
||||
: ""}
|
||||
{_.has(detailsObj, "pinswg_siteaddressline1") &&
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddressline1"
|
||||
) &&
|
||||
detailsObj.pinswg_siteaddressline1 !=
|
||||
null && <br />}
|
||||
{_.has(detailsObj, "pinswg_siteaddressline2")
|
||||
{hasOwn(detailsObj, "pinswg_siteaddressline2")
|
||||
? detailsObj.pinswg_siteaddressline2
|
||||
: ""}
|
||||
{_.has(detailsObj, "pinswg_siteaddressline2") &&
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddressline2"
|
||||
) &&
|
||||
detailsObj.pinswg_siteaddressline2 !=
|
||||
null && <br />}
|
||||
{_.has(detailsObj, "pinswg_siteaddresstown")
|
||||
{hasOwn(detailsObj, "pinswg_siteaddresstown")
|
||||
? detailsObj.pinswg_siteaddresstown
|
||||
: ""}
|
||||
{_.has(detailsObj, "pinswg_siteaddresstown") &&
|
||||
{hasOwn(detailsObj, "pinswg_siteaddresstown") &&
|
||||
detailsObj.pinswg_siteaddresstown !=
|
||||
null && <br />}
|
||||
{_.has(detailsObj, "pinswg_siteaddresscounty")
|
||||
{hasOwn(detailsObj, "pinswg_siteaddresscounty")
|
||||
? detailsObj.pinswg_siteaddresscounty
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresscounty"
|
||||
) &&
|
||||
detailsObj.pinswg_siteaddresscounty !=
|
||||
null && <br />}
|
||||
{_.has(detailsObj, "pinswg_siteaddresspostcode")
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresspostcode"
|
||||
)
|
||||
? detailsObj.pinswg_siteaddresspostcode
|
||||
: ""}
|
||||
</dd>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { JSONPath as jsonpath } from "jsonpath-plus";
|
||||
import useTranslation from "next-translate/useTranslation";
|
||||
import { useRouter } from "next/router";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const RepLPADetails = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -15,15 +16,15 @@ const RepLPADetails = (props) => {
|
||||
? props.props.myRepresentations.myRepresentations
|
||||
: props.searchResultsObj.searchDetailsObj
|
||||
: props.currentType == "watchedCases"
|
||||
? props.props.props.watchedCases.watchedCasesDetails
|
||||
: props.props.searchResultsObj.searchDetailsObj;
|
||||
? props.props.props.watchedCases.watchedCasesDetails
|
||||
: props.props.searchResultsObj.searchDetailsObj;
|
||||
|
||||
var detailsObj = {};
|
||||
|
||||
detailsObj = jsonpath({
|
||||
path: '$..[?(@ && @.ticketnumber=="' + ticketnumber + '")]',
|
||||
json: setCaseDetailsObj,
|
||||
eval: true,
|
||||
eval: true
|
||||
});
|
||||
|
||||
detailsObj = detailsObj[0];
|
||||
@@ -51,34 +52,43 @@ const RepLPADetails = (props) => {
|
||||
{t("case:summary-site-address-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(detailsObj, "pinswg_siteaddressline1")
|
||||
{hasOwn(detailsObj, "pinswg_siteaddressline1")
|
||||
? detailsObj.pinswg_siteaddressline1
|
||||
: ""}
|
||||
{_.has(detailsObj, "pinswg_siteaddressline1") &&
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddressline1"
|
||||
) &&
|
||||
detailsObj.pinswg_siteaddressline1 !=
|
||||
null && <br />}
|
||||
{_.has(detailsObj, "pinswg_siteaddressline2")
|
||||
{hasOwn(detailsObj, "pinswg_siteaddressline2")
|
||||
? detailsObj.pinswg_siteaddressline2
|
||||
: ""}
|
||||
{_.has(detailsObj, "pinswg_siteaddressline2") &&
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddressline2"
|
||||
) &&
|
||||
detailsObj.pinswg_siteaddressline2 !=
|
||||
null && <br />}
|
||||
{_.has(detailsObj, "pinswg_siteaddresstown")
|
||||
{hasOwn(detailsObj, "pinswg_siteaddresstown")
|
||||
? detailsObj.pinswg_siteaddresstown
|
||||
: ""}
|
||||
{_.has(detailsObj, "pinswg_siteaddresstown") &&
|
||||
{hasOwn(detailsObj, "pinswg_siteaddresstown") &&
|
||||
detailsObj.pinswg_siteaddresstown !=
|
||||
null && <br />}
|
||||
{_.has(detailsObj, "pinswg_siteaddresscounty")
|
||||
{hasOwn(detailsObj, "pinswg_siteaddresscounty")
|
||||
? detailsObj.pinswg_siteaddresscounty
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresscounty"
|
||||
) &&
|
||||
detailsObj.pinswg_siteaddresscounty !=
|
||||
null && <br />}
|
||||
{_.has(detailsObj, "pinswg_siteaddresspostcode")
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresspostcode"
|
||||
)
|
||||
? detailsObj.pinswg_siteaddresspostcode
|
||||
: ""}
|
||||
</dd>
|
||||
|
||||
+62
-63
@@ -1,6 +1,5 @@
|
||||
import _ from "lodash";
|
||||
import useTranslation from "next-translate/useTranslation";
|
||||
import { formatDates, updateLinks } from "../../../utils";
|
||||
import { formatDates, hasOwn, updateLinks } from "../../../utils";
|
||||
|
||||
let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -11,7 +10,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
showQuestionnaireSection,
|
||||
setShowQuestionnaireSection,
|
||||
setRepresentationSubmit,
|
||||
questionnaireCount,
|
||||
questionnaireCount
|
||||
} = props;
|
||||
|
||||
let repFormData = formObj.representationForm.values;
|
||||
@@ -22,7 +21,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<>
|
||||
{showQuestionnaireSection}
|
||||
|
||||
{_.has(repFormData, "procedureType") && (
|
||||
{hasOwn(repFormData, "procedureType") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -84,7 +83,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "enterToView") && (
|
||||
{hasOwn(repFormData, "enterToView") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -117,7 +116,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "enterNeighbouringLandToViewSite") && (
|
||||
{hasOwn(repFormData, "enterNeighbouringLandToViewSite") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -160,7 +159,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.enterNeighbouringLandToViewSiteEvidence,
|
||||
__html: repFormData.enterNeighbouringLandToViewSiteEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -187,7 +186,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "enterNeighbouringLandAccessRequired") && (
|
||||
{hasOwn(repFormData, "enterNeighbouringLandAccessRequired") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -231,7 +230,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.enterNeighbouringLandAccessRequiredEvidence,
|
||||
__html: repFormData.enterNeighbouringLandAccessRequiredEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -258,7 +257,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "healthAndSafetyIssues") && (
|
||||
{hasOwn(repFormData, "healthAndSafetyIssues") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -301,7 +300,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.healthAndSafetyIssuesEvidence,
|
||||
__html: repFormData.healthAndSafetyIssuesEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -337,11 +336,11 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(repFormData, "LPAcontactDetails") ? (
|
||||
{hasOwn(repFormData, "LPAcontactDetails") ? (
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.LPAcontactDetails,
|
||||
__html: repFormData.LPAcontactDetails
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
@@ -378,11 +377,11 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(repFormData, "LPAcaseFileAndReps") ? (
|
||||
{hasOwn(repFormData, "LPAcaseFileAndReps") ? (
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.LPAcaseFileAndReps,
|
||||
__html: repFormData.LPAcaseFileAndReps
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
@@ -419,11 +418,11 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(repFormData, "LPAldpAndMap") ? (
|
||||
{hasOwn(repFormData, "LPAldpAndMap") ? (
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.LPAldpAndMap,
|
||||
__html: repFormData.LPAldpAndMap
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
@@ -460,11 +459,11 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(repFormData, "LPAlocalGuidance") ? (
|
||||
{hasOwn(repFormData, "LPAlocalGuidance") ? (
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.LPAlocalGuidance,
|
||||
__html: repFormData.LPAlocalGuidance
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
@@ -493,7 +492,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</div>
|
||||
</>
|
||||
|
||||
{_.has(repFormData, "LPAintentionToSubmitFullStatement") && (
|
||||
{hasOwn(repFormData, "LPAintentionToSubmitFullStatement") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -526,7 +525,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "AONB") && (
|
||||
{hasOwn(repFormData, "AONB") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -558,7 +557,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "ROW") && (
|
||||
{hasOwn(repFormData, "ROW") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -600,7 +599,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.ROWEvidence,
|
||||
__html: repFormData.ROWEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -627,7 +626,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "conservationArea") && (
|
||||
{hasOwn(repFormData, "conservationArea") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -670,7 +669,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.conservationAreaEvidence,
|
||||
__html: repFormData.conservationAreaEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -697,7 +696,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "affectListedBuilding") && (
|
||||
{hasOwn(repFormData, "affectListedBuilding") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -740,7 +739,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.affectListedBuildingEvidence,
|
||||
__html: repFormData.affectListedBuildingEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -767,7 +766,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "TPO") && (
|
||||
{hasOwn(repFormData, "TPO") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -810,7 +809,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.TPOEvidence,
|
||||
__html: repFormData.TPOEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -837,7 +836,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "natureConservationSite") && (
|
||||
{hasOwn(repFormData, "natureConservationSite") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -880,7 +879,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.natureConservationSiteEvidence,
|
||||
__html: repFormData.natureConservationSiteEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -907,7 +906,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "protectedSpecies") && (
|
||||
{hasOwn(repFormData, "protectedSpecies") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -950,7 +949,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.protectedSpeciesEvidence,
|
||||
__html: repFormData.protectedSpeciesEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -977,7 +976,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "gypsyTravellerInvolvment") && (
|
||||
{hasOwn(repFormData, "gypsyTravellerInvolvment") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1010,7 +1009,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "governmentDepartmentComments") && (
|
||||
{hasOwn(repFormData, "governmentDepartmentComments") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1053,7 +1052,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.governmentDepartmentCommentsEvidence,
|
||||
__html: repFormData.governmentDepartmentCommentsEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -1080,7 +1079,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "developmentNotBeginLaterThanFiveYears") && (
|
||||
{hasOwn(repFormData, "developmentNotBeginLaterThanFiveYears") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1113,7 +1112,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "developmentCarriedOutInAccordance") && (
|
||||
{hasOwn(repFormData, "developmentCarriedOutInAccordance") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1156,7 +1155,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.developmentCarriedOutInAccordanceEvidence,
|
||||
__html: repFormData.developmentCarriedOutInAccordanceEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -1183,7 +1182,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "developmentNotTakePlaceBiodiversity") && (
|
||||
{hasOwn(repFormData, "developmentNotTakePlaceBiodiversity") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1216,7 +1215,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "developmentNotTakePlaceBroadband") && (
|
||||
{hasOwn(repFormData, "developmentNotTakePlaceBroadband") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1259,7 +1258,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.developmentNotTakePlaceBroadbandEvidence,
|
||||
__html: repFormData.developmentNotTakePlaceBroadbandEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -1286,7 +1285,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "developmentAnyOtherConditions") && (
|
||||
{hasOwn(repFormData, "developmentAnyOtherConditions") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1329,7 +1328,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.developmentAnyOtherConditionsEvidence,
|
||||
__html: repFormData.developmentAnyOtherConditionsEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -1356,7 +1355,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "copyOfApplicantsCertificate") && (
|
||||
{hasOwn(repFormData, "copyOfApplicantsCertificate") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1399,7 +1398,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.copyOfApplicantsCertificateEvidence,
|
||||
__html: repFormData.copyOfApplicantsCertificateEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -1426,7 +1425,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "advertismentGiven") && (
|
||||
{hasOwn(repFormData, "advertismentGiven") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1469,7 +1468,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.advertismentGivenEvidence,
|
||||
__html: repFormData.advertismentGivenEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -1496,7 +1495,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "copyOfLetterOfAppealNotification") && (
|
||||
{hasOwn(repFormData, "copyOfLetterOfAppealNotification") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1539,7 +1538,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.copyOfLetterOfAppealNotificationEvidence,
|
||||
__html: repFormData.copyOfLetterOfAppealNotificationEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -1566,7 +1565,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "lpaEIAOS") && (
|
||||
{hasOwn(repFormData, "lpaEIAOS") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1609,7 +1608,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.lpaEIAOSEvidence,
|
||||
__html: repFormData.lpaEIAOSEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -1636,7 +1635,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "advertismentConsentDiscontinuanceNotice") && (
|
||||
{hasOwn(repFormData, "advertismentConsentDiscontinuanceNotice") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1681,7 +1680,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.advertismentConsentDiscontinuanceNoticeEvidence,
|
||||
__html: repFormData.advertismentConsentDiscontinuanceNoticeEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -1708,7 +1707,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "detailsOfOtherAppeals") && (
|
||||
{hasOwn(repFormData, "detailsOfOtherAppeals") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1751,7 +1750,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.detailsOfOtherAppeals,
|
||||
__html: repFormData.detailsOfOtherAppeals
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -1778,7 +1777,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "detailsOfPreviousAppeals") && (
|
||||
{hasOwn(repFormData, "detailsOfPreviousAppeals") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1821,7 +1820,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.detailsOfPreviousAppealsEvidence,
|
||||
__html: repFormData.detailsOfPreviousAppealsEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -1848,7 +1847,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "otherRelevantInformation") && (
|
||||
{hasOwn(repFormData, "otherRelevantInformation") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1891,7 +1890,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.otherRelevantInformationEvidence,
|
||||
__html: repFormData.otherRelevantInformationEvidence
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
@@ -1918,7 +1917,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "signedDate") && (
|
||||
{hasOwn(repFormData, "signedDate") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1950,7 +1949,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "caseOfficer") && (
|
||||
{hasOwn(repFormData, "caseOfficer") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
@@ -1983,7 +1982,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{_.has(repFormData, "onBehalfOfLPA") && (
|
||||
{hasOwn(repFormData, "onBehalfOfLPA") && (
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
|
||||
+47
-47
@@ -32,7 +32,7 @@ import {
|
||||
|
||||
import { signIn, useSession } from "next-auth/react";
|
||||
import { destroyCookie, parseCookies, setCookie } from "nookies";
|
||||
import { getFormCollectionByID, getDetailsProxy } from "../utils";
|
||||
import { getFormCollectionByID, getDetailsProxy, hasOwn } from "../utils";
|
||||
import {
|
||||
getLivePublishedEvent,
|
||||
isEventLiveNow
|
||||
@@ -639,7 +639,7 @@ const CaseSummary = (props) => {
|
||||
</div>
|
||||
{detailsObj.pinswg_agentcontactname !=
|
||||
null &&
|
||||
(_.has(
|
||||
(hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_agentcontactname"
|
||||
) ? (
|
||||
@@ -650,7 +650,7 @@ const CaseSummary = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_agentcontactname"
|
||||
)
|
||||
@@ -694,103 +694,103 @@ const CaseSummary = (props) => {
|
||||
)[0]
|
||||
: ""
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddressline1"
|
||||
)
|
||||
? detailsObj.pinswg_siteaddressline1
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addressline1"
|
||||
)
|
||||
? detailsObj.pinswg_addressline1
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddressline1"
|
||||
) &&
|
||||
detailsObj.pinswg_siteaddressline1 !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addressline1"
|
||||
) &&
|
||||
detailsObj.pinswg_addressline1 !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddressline2"
|
||||
)
|
||||
? detailsObj.pinswg_siteaddressline2
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addressline2"
|
||||
)
|
||||
? detailsObj.pinswg_addressline2
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addressline2"
|
||||
) &&
|
||||
detailsObj.pinswg_addressline2 !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresstown"
|
||||
)
|
||||
? detailsObj.pinswg_siteaddresstown
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addresstown"
|
||||
)
|
||||
? detailsObj.pinswg_addresstown
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresstown"
|
||||
) &&
|
||||
detailsObj.pinswg_siteaddresstown !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addresstown"
|
||||
) &&
|
||||
detailsObj.pinswg_addresstown !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresscounty"
|
||||
)
|
||||
? detailsObj.pinswg_siteaddresscounty
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addresscounty"
|
||||
)
|
||||
? detailsObj.pinswg_addresscounty
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresscounty"
|
||||
) &&
|
||||
detailsObj.pinswg_siteaddresscounty !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addresscounty"
|
||||
) &&
|
||||
detailsObj.pinswg_addresscounty !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresspostcode"
|
||||
)
|
||||
? detailsObj.pinswg_siteaddresspostcode
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_postcode"
|
||||
)
|
||||
@@ -1444,7 +1444,7 @@ const CaseSummary = (props) => {
|
||||
</div>
|
||||
<div className="govuk-grid-row">
|
||||
<div className="govuk-grid-column-full">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_startdate"
|
||||
) &&
|
||||
@@ -1577,103 +1577,103 @@ const CaseSummary = (props) => {
|
||||
)[0]
|
||||
: ""
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddressline1"
|
||||
)
|
||||
? detailsObj.pinswg_siteaddressline1
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addressline1"
|
||||
)
|
||||
? detailsObj.pinswg_addressline1
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddressline1"
|
||||
) &&
|
||||
detailsObj.pinswg_siteaddressline1 !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addressline1"
|
||||
) &&
|
||||
detailsObj.pinswg_addressline1 !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddressline2"
|
||||
)
|
||||
? detailsObj.pinswg_siteaddressline2
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addressline2"
|
||||
)
|
||||
? detailsObj.pinswg_addressline2
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addressline2"
|
||||
) &&
|
||||
detailsObj.pinswg_addressline2 !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresstown"
|
||||
)
|
||||
? detailsObj.pinswg_siteaddresstown
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addresstown"
|
||||
)
|
||||
? detailsObj.pinswg_addresstown
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresstown"
|
||||
) &&
|
||||
detailsObj.pinswg_siteaddresstown !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addresstown"
|
||||
) &&
|
||||
detailsObj.pinswg_addresstown !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresscounty"
|
||||
)
|
||||
? detailsObj.pinswg_siteaddresscounty
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addresscounty"
|
||||
)
|
||||
? detailsObj.pinswg_addresscounty
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresscounty"
|
||||
) &&
|
||||
detailsObj.pinswg_siteaddresscounty !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_addresscounty"
|
||||
) &&
|
||||
detailsObj.pinswg_addresscounty !=
|
||||
null && <br />}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_siteaddresspostcode"
|
||||
)
|
||||
? detailsObj.pinswg_siteaddresspostcode
|
||||
: ""}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_postcode"
|
||||
)
|
||||
@@ -1710,7 +1710,7 @@ const CaseSummary = (props) => {
|
||||
Screening start date
|
||||
</dt>{" "}
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_screeningstartdate"
|
||||
)
|
||||
@@ -1733,7 +1733,7 @@ const CaseSummary = (props) => {
|
||||
EIA target date
|
||||
</dt>{" "}
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_eiatargetdate"
|
||||
)
|
||||
@@ -1761,7 +1761,7 @@ const CaseSummary = (props) => {
|
||||
Target Extended
|
||||
</dt>{" "}
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_targetextended"
|
||||
)
|
||||
@@ -1786,7 +1786,7 @@ const CaseSummary = (props) => {
|
||||
Date
|
||||
</dt>{" "}
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_directionissueddate"
|
||||
)
|
||||
@@ -1816,7 +1816,7 @@ const CaseSummary = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_eiarequired"
|
||||
)
|
||||
@@ -1852,7 +1852,7 @@ const CaseSummary = (props) => {
|
||||
Scoping Start Date
|
||||
</dt>{" "}
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_scopingstartdate"
|
||||
)
|
||||
@@ -1875,7 +1875,7 @@ const CaseSummary = (props) => {
|
||||
Scoping Target Date
|
||||
</dt>{" "}
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_scopingtargetdate"
|
||||
)
|
||||
@@ -1903,7 +1903,7 @@ const CaseSummary = (props) => {
|
||||
Extended
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_scopingtargetextended"
|
||||
)
|
||||
@@ -1928,7 +1928,7 @@ const CaseSummary = (props) => {
|
||||
Issued Date
|
||||
</dt>{" "}
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_scopingoutcomeissueddate"
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_advertsid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -192,7 +193,7 @@ const Pinswg_advertsid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -231,7 +232,7 @@ const Pinswg_advertsid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -239,7 +240,7 @@ const Pinswg_advertsid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -256,7 +257,7 @@ const Pinswg_advertsid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -275,7 +276,7 @@ const Pinswg_advertsid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -288,7 +289,7 @@ const Pinswg_advertsid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -308,7 +309,7 @@ const Pinswg_advertsid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -325,7 +326,7 @@ const Pinswg_advertsid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -341,7 +342,7 @@ const Pinswg_advertsid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_callinss77id = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -233,7 +234,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -253,7 +254,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateexportedtoiss"
|
||||
)
|
||||
@@ -275,7 +276,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementsduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementsduedate
|
||||
)
|
||||
@@ -293,7 +294,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -306,7 +307,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -327,7 +328,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -347,7 +348,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -368,7 +369,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -384,7 +385,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -400,7 +401,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_commonlandid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -234,7 +235,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -242,7 +243,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -259,7 +260,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -276,7 +277,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementsduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementsduedate
|
||||
)
|
||||
@@ -295,7 +296,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -308,7 +309,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -330,7 +331,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -350,7 +351,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -371,7 +372,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -388,7 +389,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_starttimeoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_starttimeoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_starttimeoftheevent
|
||||
)
|
||||
@@ -404,7 +405,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -233,7 +234,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -246,7 +247,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -268,7 +269,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -285,7 +286,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -302,7 +303,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -318,7 +319,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -5,6 +5,7 @@ import { useRouter } from "next/router";
|
||||
import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -155,7 +156,9 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, [
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -219,7 +222,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -227,7 +230,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -244,7 +247,10 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_questionnaireduedate"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -261,7 +267,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -280,7 +286,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -293,7 +299,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -315,7 +321,10 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_finalcommentsduedate"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -335,7 +344,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -356,7 +365,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -373,7 +382,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -389,7 +398,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
import MapComponent from "../../mapping/";
|
||||
|
||||
@@ -243,7 +244,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-case-officer-label"
|
||||
)}
|
||||
value={
|
||||
_.has(casesObj, "_ownerid_value")
|
||||
hasOwn(casesObj, "_ownerid_value")
|
||||
? casesObj[
|
||||
"_ownerid_value@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
@@ -276,7 +277,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-start-event-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_startdateofevent"
|
||||
)
|
||||
@@ -299,7 +300,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-event-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateeventrequested"
|
||||
)
|
||||
@@ -355,7 +356,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-decision-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofdecision"
|
||||
)
|
||||
@@ -381,7 +382,7 @@ const Pinswg_dnsid = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, [
|
||||
{hasOwn(casesObj, [
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents >
|
||||
@@ -447,7 +448,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-valid-notice-of-intention-to-submit-an-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_validnoticeofintentiontosubmitanapplicati"
|
||||
)
|
||||
@@ -470,7 +471,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-written-acceptance-of-notice"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_writtenacceptanceofnotification"
|
||||
)
|
||||
@@ -493,7 +494,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-deadline-for-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_deadlineforsubmissionofapplication"
|
||||
)
|
||||
@@ -516,7 +517,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-date-of-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofsubmissionofapplication"
|
||||
)
|
||||
@@ -534,7 +535,7 @@ const Pinswg_dnsid = (props) => {
|
||||
)
|
||||
}
|
||||
/>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationacceptedasvalid"
|
||||
) &&
|
||||
@@ -558,7 +559,7 @@ const Pinswg_dnsid = (props) => {
|
||||
}
|
||||
/>
|
||||
)}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationrejectedasinvalid"
|
||||
) &&
|
||||
@@ -587,7 +588,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-end-of-representation-period"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_endofrepresentationperiod"
|
||||
)
|
||||
@@ -606,7 +607,7 @@ const Pinswg_dnsid = (props) => {
|
||||
}
|
||||
/>
|
||||
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofrequesttovarytheapplication"
|
||||
) &&
|
||||
@@ -631,14 +632,14 @@ const Pinswg_dnsid = (props) => {
|
||||
/>
|
||||
)}
|
||||
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
) &&
|
||||
!_.isEmpty(
|
||||
detailsObj.pinswg_confirmrequesttovaryapplication
|
||||
) &&
|
||||
(_.has(
|
||||
(hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
) &&
|
||||
@@ -664,14 +665,14 @@ const Pinswg_dnsid = (props) => {
|
||||
) : (
|
||||
""
|
||||
))}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
) &&
|
||||
!_.isEmpty(
|
||||
detailsObj.pinswg_rejectrequesttovaryapplication
|
||||
) &&
|
||||
(_.has(
|
||||
(hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
) &&
|
||||
@@ -697,7 +698,7 @@ const Pinswg_dnsid = (props) => {
|
||||
) : (
|
||||
""
|
||||
))}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionstartdates"
|
||||
) &&
|
||||
@@ -727,7 +728,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-suspension-end-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionenddates"
|
||||
)
|
||||
@@ -748,7 +749,7 @@ const Pinswg_dnsid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-report-due-by")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportdueby"
|
||||
)
|
||||
@@ -769,7 +770,7 @@ const Pinswg_dnsid = (props) => {
|
||||
{/* <SummaryRow
|
||||
label={t("case:summary-suspension-dates")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensiondates"
|
||||
)
|
||||
@@ -792,7 +793,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-inspector-report-submission-to-welsh-government"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_inspectorreportsubmittedtowelshgovernment"
|
||||
)
|
||||
@@ -810,7 +811,7 @@ const Pinswg_dnsid = (props) => {
|
||||
)
|
||||
}
|
||||
/>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_withdrawndate"
|
||||
) &&
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_electricityactid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -133,7 +134,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
{" "}
|
||||
{/* {casesObj.caseDetails.caseOfficer ||
|
||||
""} */}
|
||||
{_.has(casesObj, "_ownerid_value")
|
||||
{hasOwn(casesObj, "_ownerid_value")
|
||||
? casesObj[
|
||||
"_ownerid_value@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
@@ -244,7 +245,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, [
|
||||
{hasOwn(casesObj, [
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents >
|
||||
@@ -336,7 +337,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-event-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateeventrequested"
|
||||
)
|
||||
@@ -359,7 +360,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-decision-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_casedecisiondate"
|
||||
)
|
||||
@@ -383,7 +384,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-application-accepted-as-valid"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationacceptedasvalid"
|
||||
)
|
||||
@@ -406,7 +407,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-application-rejected-as-invalid"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationrejectedasinvalid"
|
||||
)
|
||||
@@ -429,7 +430,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-confirm-request-to-vary-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
)
|
||||
@@ -452,7 +453,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-date-of-decisions"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofdecision"
|
||||
)
|
||||
@@ -475,7 +476,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-date-of-request-to-vary"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofrequesttovarytheapplication"
|
||||
)
|
||||
@@ -498,7 +499,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-date-of-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofsubmissionofapplication"
|
||||
)
|
||||
@@ -521,7 +522,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-date-project-published-to-website"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateprojectpublishedonwebsite"
|
||||
)
|
||||
@@ -544,7 +545,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-deadline-for-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_deadlineforsubmissionofapplication"
|
||||
)
|
||||
@@ -567,7 +568,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-end-of-representation-period"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_endofrepresentationperiod"
|
||||
)
|
||||
@@ -590,7 +591,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-inspector-report-submission-to-welsh-government"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_inspectorreportsubmittedtowelshgovernment"
|
||||
)
|
||||
@@ -613,7 +614,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-procedure-confirmed"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_procedureconfirmed"
|
||||
)
|
||||
@@ -636,7 +637,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-reject-request-to-vary-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
)
|
||||
@@ -657,7 +658,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-report-due-by")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportdueby"
|
||||
)
|
||||
@@ -680,7 +681,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-suspension-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensiondates"
|
||||
)
|
||||
@@ -703,7 +704,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-suspension-end-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionenddates"
|
||||
)
|
||||
@@ -726,7 +727,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-suspension-start-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionstartdates"
|
||||
)
|
||||
@@ -749,7 +750,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-valid-notice-of-intention-to-submit-an-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_validnoticeofintentiontosubmitanapplicati"
|
||||
)
|
||||
@@ -770,7 +771,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-withdrawn-date")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_withdrawndate"
|
||||
)
|
||||
@@ -793,7 +794,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-written-acceptance-of-notice"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_writtenacceptanceofnotification"
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -325,7 +326,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -346,7 +347,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -363,7 +364,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -379,7 +380,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -322,7 +323,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -342,7 +343,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -359,7 +360,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -375,7 +376,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_environmentalpermittingid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -234,7 +235,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -242,7 +243,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -259,7 +260,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -276,7 +277,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -295,7 +296,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -308,7 +309,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -330,7 +331,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -347,7 +348,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -367,7 +368,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -384,7 +385,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -400,7 +401,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_harbourrevisionorderid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -133,7 +134,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
{" "}
|
||||
{/* {casesObj.caseDetails.caseOfficer ||
|
||||
""} */}
|
||||
{_.has(casesObj, "_ownerid_value")
|
||||
{hasOwn(casesObj, "_ownerid_value")
|
||||
? casesObj[
|
||||
"_ownerid_value@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
@@ -223,7 +224,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, [
|
||||
{hasOwn(casesObj, [
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents >
|
||||
@@ -315,7 +316,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-event-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateeventrequested"
|
||||
)
|
||||
@@ -338,7 +339,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-decision-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_casedecisiondate"
|
||||
)
|
||||
@@ -362,7 +363,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-application-accepted-as-valid"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationacceptedasvalid"
|
||||
)
|
||||
@@ -385,7 +386,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-application-rejected-as-invalid"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationrejectedasinvalid"
|
||||
)
|
||||
@@ -408,7 +409,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-confirm-request-to-vary-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
)
|
||||
@@ -431,7 +432,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-date-of-decisions"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofdecision"
|
||||
)
|
||||
@@ -454,7 +455,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-date-of-request-to-vary"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofrequesttovarytheapplication"
|
||||
)
|
||||
@@ -477,7 +478,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-date-of-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofsubmissionofapplication"
|
||||
)
|
||||
@@ -500,7 +501,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-date-project-published-to-website"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateprojectpublishedonwebsite"
|
||||
)
|
||||
@@ -523,7 +524,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-deadline-for-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_deadlineforsubmissionofapplication"
|
||||
)
|
||||
@@ -546,7 +547,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-end-of-representation-period"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_endofrepresentationperiod"
|
||||
)
|
||||
@@ -569,7 +570,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-inspector-report-submission-to-welsh-government"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_inspectorreportsubmittedtowelshgovernment"
|
||||
)
|
||||
@@ -592,7 +593,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-procedure-confirmed"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_procedureconfirmed"
|
||||
)
|
||||
@@ -615,7 +616,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-reject-request-to-vary-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
)
|
||||
@@ -636,7 +637,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-report-due-by")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportdueby"
|
||||
)
|
||||
@@ -659,7 +660,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-suspension-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensiondates"
|
||||
)
|
||||
@@ -682,7 +683,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-suspension-end-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionenddates"
|
||||
)
|
||||
@@ -705,7 +706,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-suspension-start-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionstartdates"
|
||||
)
|
||||
@@ -728,7 +729,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-valid-notice-of-intention-to-submit-an-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_validnoticeofintentiontosubmitanapplicati"
|
||||
)
|
||||
@@ -749,7 +750,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-withdrawn-date")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_withdrawndate"
|
||||
)
|
||||
@@ -772,7 +773,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-written-acceptance-of-notice"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_writtenacceptanceofnotification"
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -191,7 +192,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -255,7 +256,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -263,7 +264,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -280,7 +281,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -297,7 +298,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -316,7 +317,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -329,7 +330,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -351,7 +352,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -368,7 +369,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -388,7 +389,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -405,7 +406,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -421,7 +422,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_householderappealhasid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -151,7 +152,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -190,7 +191,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -198,7 +199,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -215,7 +216,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -232,7 +233,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_otherpartiesstmt")
|
||||
hasOwn(detailsObj, "pinswg_otherpartiesstmt")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_otherpartiesstmt
|
||||
)
|
||||
@@ -261,7 +262,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstmt"
|
||||
)
|
||||
@@ -280,7 +281,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -297,7 +298,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -313,7 +314,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -322,7 +323,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -342,7 +343,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -359,7 +360,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -375,7 +376,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_ldpid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -153,7 +154,7 @@ const Pinswg_ldpid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -192,7 +193,7 @@ const Pinswg_ldpid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -200,7 +201,7 @@ const Pinswg_ldpid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -217,7 +218,7 @@ const Pinswg_ldpid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -234,7 +235,7 @@ const Pinswg_ldpid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -253,7 +254,7 @@ const Pinswg_ldpid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -266,7 +267,7 @@ const Pinswg_ldpid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -288,7 +289,7 @@ const Pinswg_ldpid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_ldpid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -325,7 +326,7 @@ const Pinswg_ldpid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -342,7 +343,7 @@ const Pinswg_ldpid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -358,7 +359,7 @@ const Pinswg_ldpid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -322,7 +323,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -342,7 +343,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -359,7 +360,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_starttimeofevent")
|
||||
hasOwn(detailsObj, "pinswg_starttimeofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_starttimeofevent
|
||||
)
|
||||
@@ -375,7 +376,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_maintenanceoflands217id = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -322,7 +323,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -342,7 +343,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -359,7 +360,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -375,7 +376,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -234,7 +235,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -242,7 +243,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -259,7 +260,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -276,7 +277,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -295,7 +296,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -308,7 +309,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -330,7 +331,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -347,7 +348,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -367,7 +368,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -384,7 +385,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -400,7 +401,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_nonvalidationid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -120,7 +121,7 @@ const Pinswg_nonvalidationid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_validdate")
|
||||
hasOwn(detailsObj, "pinswg_validdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_validdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_validdate
|
||||
@@ -128,7 +129,7 @@ const Pinswg_nonvalidationid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -143,7 +144,7 @@ const Pinswg_nonvalidationid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_decisionissueddate")
|
||||
hasOwn(detailsObj, "pinswg_decisionissueddate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_decisionissueddate
|
||||
)
|
||||
|
||||
@@ -5,7 +5,11 @@ import { useRouter } from "next/router";
|
||||
import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayValue, getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import {
|
||||
getCaseLpaDisplayValue,
|
||||
getCaseLpaDisplayLines
|
||||
} from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_planningappeals78id = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +174,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
@@ -189,7 +193,9 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, [
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -228,7 +234,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -236,7 +242,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -253,7 +259,10 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_questionnaireduedate"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -272,7 +281,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
"case:summary-statement-interested-party-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -291,7 +300,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -304,7 +313,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -326,7 +335,10 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-final-comments-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_finalcommentsduedate"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -344,7 +356,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -365,7 +377,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
{/* <SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateeventrequested"
|
||||
)
|
||||
@@ -387,7 +399,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_startdatetimeiftheevent"
|
||||
)
|
||||
@@ -410,7 +422,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-time-label")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_startdatetimeiftheevent"
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_planningconditionss73s79id = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -323,7 +324,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -344,7 +345,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -361,7 +362,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -377,7 +378,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_planningobligationappeals106id = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -322,7 +323,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -342,7 +343,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -359,7 +360,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -375,7 +376,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_rowid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -191,7 +192,7 @@ const Pinswg_rowid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -255,7 +256,7 @@ const Pinswg_rowid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -263,7 +264,7 @@ const Pinswg_rowid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -280,7 +281,7 @@ const Pinswg_rowid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -297,7 +298,7 @@ const Pinswg_rowid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -316,7 +317,7 @@ const Pinswg_rowid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -329,7 +330,7 @@ const Pinswg_rowid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -351,7 +352,7 @@ const Pinswg_rowid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -368,7 +369,7 @@ const Pinswg_rowid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -388,7 +389,7 @@ const Pinswg_rowid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -405,7 +406,7 @@ const Pinswg_rowid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -421,7 +422,7 @@ const Pinswg_rowid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
import MapComponent from "../../mapping";
|
||||
|
||||
@@ -315,7 +316,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-case-officer-label"
|
||||
)}
|
||||
value={
|
||||
_.has(casesObj, "_ownerid_value")
|
||||
hasOwn(casesObj, "_ownerid_value")
|
||||
? casesObj[
|
||||
"_ownerid_value@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
@@ -349,7 +350,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_startdateofevent"
|
||||
)
|
||||
@@ -375,7 +376,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateeventrequested"
|
||||
)
|
||||
@@ -431,7 +432,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-decision-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofdecision"
|
||||
)
|
||||
@@ -457,7 +458,7 @@ const Pinswg_sipscase = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, [
|
||||
{hasOwn(casesObj, [
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents >
|
||||
@@ -570,7 +571,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-valid-notice-of-intention-to-submit-an-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_validnoticeofintentiontosubmit"
|
||||
)
|
||||
@@ -593,7 +594,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-written-acceptance-of-notice"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_writtenacceptanceofnotification"
|
||||
)
|
||||
@@ -616,7 +617,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-deadline-for-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_deadlineforsubmissionofapplication"
|
||||
)
|
||||
@@ -665,7 +666,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-validation-deadline-extension"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_validationdeadlineextension"
|
||||
)
|
||||
@@ -693,7 +694,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-case-suspension-start-date"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_casesuspensionstartdate"
|
||||
)
|
||||
@@ -721,7 +722,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-case-suspension-end-date"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_casesuspensionenddate"
|
||||
)
|
||||
@@ -772,7 +773,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-report-issued-to-welsh-ministers"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportissuedtowelshministers"
|
||||
)
|
||||
@@ -800,7 +801,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-decision-issued-to-applicant"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_decisionissuedtoapplicant"
|
||||
)
|
||||
@@ -828,7 +829,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-decision-outcome"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_decisionoutcome"
|
||||
)
|
||||
@@ -872,7 +873,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-post-decision-redetermination-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_redetermination@OData.Community.Display.V1.FormattedValue"
|
||||
)
|
||||
@@ -902,7 +903,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-post-decision-redetermination-deadline-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_redeterminationconsultationdeadline"
|
||||
)
|
||||
@@ -937,7 +938,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_screeningstartdate"
|
||||
)
|
||||
@@ -963,7 +964,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_eiatargetdate"
|
||||
)
|
||||
@@ -994,7 +995,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_targetextended"
|
||||
)
|
||||
@@ -1021,7 +1022,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_directionissueddate"
|
||||
)
|
||||
@@ -1054,7 +1055,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_eiarequired"
|
||||
)
|
||||
@@ -1089,7 +1090,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_scopingstartdate"
|
||||
)
|
||||
@@ -1115,7 +1116,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_scopingtargetdate"
|
||||
)
|
||||
@@ -1145,7 +1146,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_scopingtargetextended"
|
||||
)
|
||||
@@ -1172,7 +1173,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_scopingoutcomeissueddate"
|
||||
)
|
||||
@@ -1203,7 +1204,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofsubmissionofapplication"
|
||||
)
|
||||
@@ -1223,7 +1224,7 @@ const Pinswg_sipscase = (props) => {
|
||||
}
|
||||
|
||||
/>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationacceptedasvalid"
|
||||
) &&
|
||||
@@ -1252,7 +1253,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
/>
|
||||
)}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationrejectedasinvalid"
|
||||
) &&
|
||||
@@ -1289,7 +1290,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_endofrepresentationperiod"
|
||||
)
|
||||
@@ -1310,7 +1311,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
/>
|
||||
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofrequesttovarytheapplication"
|
||||
) &&
|
||||
@@ -1340,14 +1341,14 @@ const Pinswg_sipscase = (props) => {
|
||||
/>
|
||||
)}
|
||||
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
) &&
|
||||
!_.isEmpty(
|
||||
detailsObj.pinswg_confirmrequesttovaryapplication
|
||||
) &&
|
||||
(_.has(
|
||||
(hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
) &&
|
||||
@@ -1378,14 +1379,14 @@ const Pinswg_sipscase = (props) => {
|
||||
) : (
|
||||
""
|
||||
))}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
) &&
|
||||
!_.isEmpty(
|
||||
detailsObj.pinswg_rejectrequesttovaryapplication
|
||||
) &&
|
||||
(_.has(
|
||||
(hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
) &&
|
||||
@@ -1416,7 +1417,7 @@ const Pinswg_sipscase = (props) => {
|
||||
) : (
|
||||
""
|
||||
))}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionstartdates"
|
||||
) &&
|
||||
@@ -1457,7 +1458,7 @@ const Pinswg_sipscase = (props) => {
|
||||
value={
|
||||
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionenddates"
|
||||
)
|
||||
@@ -1485,7 +1486,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportdueby"
|
||||
)
|
||||
@@ -1511,7 +1512,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensiondates"
|
||||
)
|
||||
@@ -1539,7 +1540,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_inspectorreportsubmittedtowelshgovernment"
|
||||
)
|
||||
@@ -1559,7 +1560,7 @@ const Pinswg_sipscase = (props) => {
|
||||
}
|
||||
|
||||
/>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_withdrawndate"
|
||||
) &&
|
||||
|
||||
@@ -5,6 +5,7 @@ import { useRouter } from "next/router";
|
||||
import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_transportandworkactid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -62,11 +63,10 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
|
||||
<dl className="govuk-summary-list govuk-!-font-size-16 govuk-!-margin-bottom-9">
|
||||
<SummaryRow
|
||||
|
||||
label={t("case:summary-case-type-label")}
|
||||
|
||||
label={t(
|
||||
"case:summary-case-type-label"
|
||||
)}
|
||||
value={
|
||||
|
||||
router.locale == "cy"
|
||||
? jsonpath({
|
||||
path:
|
||||
@@ -76,7 +76,7 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
] +
|
||||
'")].value_cy',
|
||||
json: transLookup,
|
||||
eval: true,
|
||||
eval: true
|
||||
})
|
||||
: casesObj[
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||
@@ -84,18 +84,13 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-eia-required-label"
|
||||
)}
|
||||
|
||||
"case:summary-eia-required-label"
|
||||
)}
|
||||
value={
|
||||
|
||||
router.locale == "cy"
|
||||
? jsonpath(
|
||||
'$..[?(@.value=="' +
|
||||
@@ -111,22 +106,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
t(
|
||||
"case:summary-to-be-confirmed-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
|
||||
<SummaryRow
|
||||
|
||||
|
||||
label={t(
|
||||
"case:summary-case-recommendation-label"
|
||||
)}
|
||||
|
||||
|
||||
"case:summary-case-recommendation-label"
|
||||
)}
|
||||
value={
|
||||
|
||||
|
||||
router.locale == "cy"
|
||||
? jsonpath({
|
||||
path:
|
||||
@@ -134,27 +121,20 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
detailsObj.pinswg_recommendation +
|
||||
'")].value_cy',
|
||||
json: transLookup,
|
||||
eval: true,
|
||||
eval: true
|
||||
})
|
||||
: detailsObj.pinswg_recommendation ||
|
||||
t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/>
|
||||
{detailsObj.pinswg_webaddress != null && (
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-case-website-label"
|
||||
)}
|
||||
|
||||
"case:summary-case-website-label"
|
||||
)}
|
||||
value={
|
||||
|
||||
router.locale == "cy"
|
||||
? jsonpath({
|
||||
path:
|
||||
@@ -162,15 +142,13 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
detailsObj.pinswg_webaddress +
|
||||
'")].value_cy',
|
||||
json: transLookup,
|
||||
eval: true,
|
||||
eval: true
|
||||
})
|
||||
: detailsObj.pinswg_webaddress ||
|
||||
t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
)}
|
||||
</dl>
|
||||
@@ -185,12 +163,11 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
</h3>
|
||||
<dl className="govuk-summary-list govuk-!-font-size-16 govuk-!-margin-bottom-9">
|
||||
<SummaryRow
|
||||
|
||||
label={t("case:summary-event-date-label")}
|
||||
|
||||
label={t(
|
||||
"case:summary-event-date-label"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateeventrequested"
|
||||
)
|
||||
@@ -206,19 +183,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-decision-date-label"
|
||||
)}
|
||||
|
||||
"case:summary-decision-date-label"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_casedecisiondate"
|
||||
)
|
||||
@@ -234,23 +206,15 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
|
||||
<SummaryRow
|
||||
|
||||
|
||||
label={t(
|
||||
"case:summary-application-accepted-as-valid"
|
||||
)}
|
||||
|
||||
|
||||
"case:summary-application-accepted-as-valid"
|
||||
)}
|
||||
value={
|
||||
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationacceptedasvalid"
|
||||
)
|
||||
@@ -266,21 +230,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-application-rejected-as-invalid"
|
||||
)}
|
||||
|
||||
"case:summary-application-rejected-as-invalid"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationrejectedasinvalid"
|
||||
)
|
||||
@@ -296,19 +253,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-confirm-request-to-vary-application"
|
||||
)}
|
||||
|
||||
"case:summary-confirm-request-to-vary-application"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
)
|
||||
@@ -324,19 +276,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-date-of-decisions"
|
||||
)}
|
||||
|
||||
"case:summary-date-of-decisions"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofdecision"
|
||||
)
|
||||
@@ -352,19 +299,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-date-of-request-to-vary"
|
||||
)}
|
||||
|
||||
"case:summary-date-of-request-to-vary"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofrequesttovarytheapplication"
|
||||
)
|
||||
@@ -380,19 +322,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-date-of-submission-of-application"
|
||||
)}
|
||||
|
||||
"case:summary-date-of-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofsubmissionofapplication"
|
||||
)
|
||||
@@ -408,19 +345,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-date-project-published-to-website"
|
||||
)}
|
||||
|
||||
"case:summary-date-project-published-to-website"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateprojectpublishedonwebsite"
|
||||
)
|
||||
@@ -436,19 +368,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-deadline-for-submission-of-application"
|
||||
)}
|
||||
|
||||
"case:summary-deadline-for-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_deadlineforsubmissionofapplication"
|
||||
)
|
||||
@@ -464,19 +391,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-end-of-representation-period"
|
||||
)}
|
||||
|
||||
"case:summary-end-of-representation-period"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_endofrepresentationperiod"
|
||||
)
|
||||
@@ -492,19 +414,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-inspector-report-submission-to-welsh-government"
|
||||
)}
|
||||
|
||||
"case:summary-inspector-report-submission-to-welsh-government"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_inspectorreportsubmittedtowelshgovernment"
|
||||
)
|
||||
@@ -520,19 +437,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-procedure-confirmed"
|
||||
)}
|
||||
|
||||
"case:summary-procedure-confirmed"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_procedureconfirmed"
|
||||
)
|
||||
@@ -548,19 +460,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-reject-request-to-vary-application"
|
||||
)}
|
||||
|
||||
"case:summary-reject-request-to-vary-application"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
)
|
||||
@@ -576,17 +483,12 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t("case:summary-report-due-by")}
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportdueby"
|
||||
)
|
||||
@@ -602,17 +504,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t("case:summary-suspension-dates")}
|
||||
|
||||
label={t(
|
||||
"case:summary-suspension-dates"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensiondates"
|
||||
)
|
||||
@@ -628,19 +527,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-suspension-end-dates"
|
||||
)}
|
||||
|
||||
"case:summary-suspension-end-dates"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionenddates"
|
||||
)
|
||||
@@ -656,19 +550,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-suspension-start-dates"
|
||||
)}
|
||||
|
||||
"case:summary-suspension-start-dates"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionstartdates"
|
||||
)
|
||||
@@ -684,19 +573,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-valid-notice-of-intention-to-submit-an-application"
|
||||
)}
|
||||
|
||||
"case:summary-valid-notice-of-intention-to-submit-an-application"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_validnoticeofintentiontosubmitanapplicati"
|
||||
)
|
||||
@@ -712,17 +596,12 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t("case:summary-withdrawn-date")}
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_withdrawndate"
|
||||
)
|
||||
@@ -738,19 +617,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-written-acceptance-of-notice"
|
||||
)}
|
||||
|
||||
"case:summary-written-acceptance-of-notice"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_writtenacceptanceofnotification"
|
||||
)
|
||||
@@ -766,9 +640,7 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_wayleaveid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -234,7 +235,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -242,7 +243,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -259,7 +260,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -276,7 +277,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -295,7 +296,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -308,7 +309,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -330,7 +331,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -347,7 +348,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -367,7 +368,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -384,7 +385,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -400,7 +401,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user