cleaned up rep functionality
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user