rep defect 42, questionnaire defect 67, enf defect 16
This commit is contained in:
@@ -1137,14 +1137,15 @@ let MakeRepresentation = (props) => {
|
|||||||
|
|
||||||
var dataObj = values;
|
var dataObj = values;
|
||||||
|
|
||||||
uploadRepFiles(
|
(values = updateLinks(values)),
|
||||||
dataObj,
|
uploadRepFiles(
|
||||||
[{}],
|
dataObj,
|
||||||
values.containerID,
|
[{}],
|
||||||
props.caseReference + "/" + dataObj.repfile_name
|
values.containerID,
|
||||||
).then((data) => {
|
props.caseReference + "/" + dataObj.repfile_name
|
||||||
return data;
|
).then((data) => {
|
||||||
});
|
return data;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const repForm = props.props.form;
|
const repForm = props.props.form;
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import {
|
|||||||
bytesToSize,
|
bytesToSize,
|
||||||
getThumbnailIconByExtension,
|
getThumbnailIconByExtension,
|
||||||
formatDates,
|
formatDates,
|
||||||
|
updateLinks,
|
||||||
} from "../../utils";
|
} from "../../utils";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -48,7 +49,9 @@ const RepCompleteSubmit = (props) => {
|
|||||||
</li>
|
</li>
|
||||||
));
|
));
|
||||||
|
|
||||||
const repFormData = formObj.representationForm.values;
|
let repFormData = formObj.representationForm.values;
|
||||||
|
|
||||||
|
repFormData = updateLinks(repFormData);
|
||||||
|
|
||||||
//const repDate = new Date();
|
//const repDate = new Date();
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,11 @@ import {
|
|||||||
subYears,
|
subYears,
|
||||||
} from "date-fns";
|
} from "date-fns";
|
||||||
|
|
||||||
import { bytesToSize, getThumbnailIconByExtension } from "../../utils";
|
import {
|
||||||
|
bytesToSize,
|
||||||
|
getThumbnailIconByExtension,
|
||||||
|
updateLinks,
|
||||||
|
} from "../../utils";
|
||||||
|
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
|
|
||||||
@@ -783,6 +787,7 @@ export const RenderRichMultiline = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const changeEdit = (valStr) => {
|
const changeEdit = (valStr) => {
|
||||||
|
valStr = updateLinks(valStr);
|
||||||
setEditValue(valStr);
|
setEditValue(valStr);
|
||||||
input.onChange(valStr);
|
input.onChange(valStr);
|
||||||
};
|
};
|
||||||
|
|||||||
+4
-2
@@ -1,6 +1,6 @@
|
|||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
import useTranslation from "next-translate/useTranslation";
|
import useTranslation from "next-translate/useTranslation";
|
||||||
import { formatDates } from "../../../utils";
|
import { formatDates, updateLinks } from "../../../utils";
|
||||||
|
|
||||||
let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||||
let { t } = useTranslation();
|
let { t } = useTranslation();
|
||||||
@@ -14,7 +14,9 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
questionnaireCount,
|
questionnaireCount,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const repFormData = formObj.representationForm.values;
|
let repFormData = formObj.representationForm.values;
|
||||||
|
|
||||||
|
repFormData = updateLinks(repFormData);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
+5
-2
@@ -1,6 +1,6 @@
|
|||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
import useTranslation from "next-translate/useTranslation";
|
import useTranslation from "next-translate/useTranslation";
|
||||||
import { formatDates } from "../../../utils";
|
import { formatDates, updateLinks } from "../../../utils";
|
||||||
|
|
||||||
let RepLPAQuestionnaireCheck_s78 = (props) => {
|
let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||||
let { t } = useTranslation();
|
let { t } = useTranslation();
|
||||||
@@ -13,7 +13,10 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
|||||||
setRepresentationSubmit,
|
setRepresentationSubmit,
|
||||||
questionnaireCount,
|
questionnaireCount,
|
||||||
} = props;
|
} = props;
|
||||||
const repFormData = formObj.representationForm.values;
|
|
||||||
|
let repFormData = formObj.representationForm.values;
|
||||||
|
|
||||||
|
repFormData = updateLinks(formObj);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -14,7 +14,11 @@ import {
|
|||||||
import BuildCheckRow from "./buildcheckrow";
|
import BuildCheckRow from "./buildcheckrow";
|
||||||
|
|
||||||
import { generateAppealPDF, sendCaseCompleteMessage } from "../../actions";
|
import { generateAppealPDF, sendCaseCompleteMessage } from "../../actions";
|
||||||
import { bytesToSize, getThumbnailIconByExtension } from "../utils";
|
import {
|
||||||
|
bytesToSize,
|
||||||
|
getThumbnailIconByExtension,
|
||||||
|
updateLinks,
|
||||||
|
} from "../utils";
|
||||||
|
|
||||||
let BuildCheckSection = (props) => {
|
let BuildCheckSection = (props) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -107,6 +111,8 @@ let BuildCheckSection = (props) => {
|
|||||||
|
|
||||||
let pdfObj = props.props.form.appealForm.values;
|
let pdfObj = props.props.form.appealForm.values;
|
||||||
|
|
||||||
|
pdfObj = updateLinks(pdfObj);
|
||||||
|
|
||||||
Object.assign(pdfObj, {
|
Object.assign(pdfObj, {
|
||||||
"filesList": buildAppealFilesArray,
|
"filesList": buildAppealFilesArray,
|
||||||
"containerID": props.props.accountDetails.containerID,
|
"containerID": props.props.accountDetails.containerID,
|
||||||
|
|||||||
Reference in New Issue
Block a user