cleaned up rep functionality

This commit is contained in:
2024-01-24 14:19:36 +00:00
parent a650452d18
commit b7a643a6b1
15 changed files with 57 additions and 235 deletions
+4 -20
View File
@@ -165,12 +165,6 @@ let MakeRepresentation = (props) => {
};
const whichControl = () => {
// console.log(isLPA);
// console.log(
// currentView.representationCapacity,
// _.isEmpty(currentView.representationCapacity)
// );
if (isLPA && _.isEmpty(currentView.representationCapacity)) {
return (
<RepLPACapacitySelection
@@ -334,7 +328,6 @@ let MakeRepresentation = (props) => {
const whichProgress = () => {
{
console.log("curr");
switch (currentView.caseReference.appealType) {
case 846040000:
case 846040001:
@@ -456,10 +449,6 @@ let MakeRepresentation = (props) => {
}
});
//console.log(updateBody);
//window.alert(`form is :\n\n${JSON.stringify(updateBody, null, 2)}`);
const reference = "PEDW-PARTIAL-REP";
const templateId = "021b0a7b-df00-41f1-b94e-c269bee98c75";
const emailAddress = props.props.accountDetails.loggedinUserEmail;
@@ -568,7 +557,6 @@ let MakeRepresentation = (props) => {
: values.representationCapacity,
"locale": locale,
}));
console.log(values);
currentView.representationSubmit != true
? _.isEmpty(currentView.representationCapacity)
? isLPA
@@ -610,11 +598,12 @@ let MakeRepresentation = (props) => {
return _.includes(key, "representationDocuments");
});
console.log(fileListObj);
console.log(
"\n////////////////////////\n upload files:",
values.containerID
values.containerID,
"\n////////////////////////\n fileListObj:",
fileListObj,
"\n////////////////////////\n"
);
var dataObj = values;
@@ -630,8 +619,6 @@ let MakeRepresentation = (props) => {
values.containerID,
props.caseReference + "/" + dataObj.repfile_name
).then((data) => {
//console.log("hello", data);
return data;
});
};
@@ -640,7 +627,6 @@ let MakeRepresentation = (props) => {
try {
let value = props.initialValues;
//console.log("has props"), value;
setRepresentationCapacity(
props.initialValues.representationCapacity.toLowerCase()
);
@@ -1192,8 +1178,6 @@ let MakeRepresentation = (props) => {
};
const mapStateToProps = (state) => {
//console.log("\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \n in map state", state);
return {
search: state.search,
searchResultsObj: state.searchResultsObj,
@@ -41,8 +41,6 @@ const RepAppellant = (props) => {
} = props;
const { acceptedFiles, getRootProps, getInputProps } = useDropzone();
// console.log(props);
return (
<>
<div className="govuk-grid-row">
@@ -41,7 +41,6 @@ const RepCompleteSubmit = (props) => {
const whichQuestionnaireCheck = () => {
{
console.log("curr");
switch (currentView.caseReference.appealType) {
case 846040000:
return (
@@ -36,8 +36,6 @@ const RepDetails = (props) => {
detailsObj = detailsObj[0];
console.log("-----detailsObj:", detailsObj);
return (
<>
{" "}
@@ -980,7 +980,6 @@ export const RenderFileUpload = (field) => {
getblobshash,
casefolderID
) => {
//console.log(containerName, blobName, deleteblobhash);
deleteBlob(containerName, blobName, deleteblobhash, casefolderID)
.then((data) => data)
.then(() => {
@@ -55,7 +55,6 @@ let RepLPA = (props) => {
const whichQuestionnaire = () => {
{
console.log("curr");
switch (currentView.caseReference.appealType) {
case 846040000:
case 846040001:
@@ -107,7 +106,6 @@ let RepLPA = (props) => {
const whichProgress = () => {
{
console.log("curr");
switch (currentView.caseReference.appealType) {
case 846040000:
case 846040001:
@@ -190,8 +188,6 @@ let RepLPA = (props) => {
);
resultsObj = resultsObj[0];
//console.log(resultsObj, detailsObj);
return (
<>
<div className="govuk-grid-row">
@@ -57,7 +57,6 @@ RepLPAQuestionnaire = connect((state) => {
})(RepLPAQuestionnaire);
const mapStateToProps = (state, props) => {
console.log();
return {
search: state.search,
searchResultsObj: state.searchResultsObj,
@@ -1192,7 +1192,6 @@ Enforcement_Questionnaire = connect((state) => {
})(Enforcement_Questionnaire);
const mapStateToProps = (state, props) => {
console.log();
return {
search: state.search,
searchResultsObj: state.searchResultsObj,