rep defect 2
This commit is contained in:
@@ -92,6 +92,13 @@ let MakeRepresentation = (props) => {
|
|||||||
|
|
||||||
let questionnaireCount = updateQuestionnaireCount();
|
let questionnaireCount = updateQuestionnaireCount();
|
||||||
|
|
||||||
|
const isLPA =
|
||||||
|
props.props.accountDetails.accountDetails[
|
||||||
|
"pinswg_typeofinvolvement@OData.Community.Display.V1.FormattedValue"
|
||||||
|
] == "LPA"
|
||||||
|
? true
|
||||||
|
: false;
|
||||||
|
|
||||||
const setRepFileName = (values) => {
|
const setRepFileName = (values) => {
|
||||||
//console.log("---------------\n", values);
|
//console.log("---------------\n", values);
|
||||||
if (
|
if (
|
||||||
@@ -177,28 +184,26 @@ let MakeRepresentation = (props) => {
|
|||||||
"_-_" +
|
"_-_" +
|
||||||
repType +
|
repType +
|
||||||
"_-_" +
|
"_-_" +
|
||||||
values.lastname.replace(
|
(isLPA
|
||||||
/[\s~`!@#$%^&*(){}\[\];:"'<,.>?\/\\|_+=-]/g,
|
? values.onBehalfOfLPA.replace(
|
||||||
""
|
/[\s~`!@#$%^&*(){}\[\];:"'<,.>?\/\\|_+=-]/g,
|
||||||
) +
|
""
|
||||||
"_" +
|
)
|
||||||
values.firstname.replace(
|
: values.lastname.replace(
|
||||||
/[\s~`!@#$%^&*(){}\[\];:"'<,.>?\/\\|_+=-]/g,
|
/[\s~`!@#$%^&*(){}\[\];:"'<,.>?\/\\|_+=-]/g,
|
||||||
""
|
""
|
||||||
),
|
) +
|
||||||
|
"_" +
|
||||||
|
values.firstname.replace(
|
||||||
|
/[\s~`!@#$%^&*(){}\[\];:"'<,.>?\/\\|_+=-]/g,
|
||||||
|
""
|
||||||
|
)),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return values;
|
return values;
|
||||||
};
|
};
|
||||||
|
|
||||||
const isLPA =
|
|
||||||
props.props.accountDetails.accountDetails[
|
|
||||||
"pinswg_typeofinvolvement@OData.Community.Display.V1.FormattedValue"
|
|
||||||
] == "LPA"
|
|
||||||
? true
|
|
||||||
: false;
|
|
||||||
|
|
||||||
isLPA && setRepresentationCapacity("lpa");
|
isLPA && setRepresentationCapacity("lpa");
|
||||||
|
|
||||||
currentType == "searchResultsObj"
|
currentType == "searchResultsObj"
|
||||||
|
|||||||
Reference in New Issue
Block a user