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