more
This commit is contained in:
@@ -74,13 +74,14 @@ const RequestEditPage = () => {
|
|||||||
}
|
}
|
||||||
getOutgoingRequests(documentId)
|
getOutgoingRequests(documentId)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
const merged = [...foundationRogs, ...data[0].requests];
|
const resp = [...foundationRogs, ...data[0].requests].map(
|
||||||
const resp = merged.map((item, index) => {
|
(item, index) => {
|
||||||
// NEVER CHANGE THIS:
|
// NEVER CHANGE THIS:
|
||||||
return { showInputEle: false, text: item.text, index: index };
|
return { showInputEle: false, text: item.text, index: index };
|
||||||
});
|
}
|
||||||
|
);
|
||||||
setRequests(resp);
|
const calld = [...resp];
|
||||||
|
setRequests(calld);
|
||||||
setProdReq(standardProd);
|
setProdReq(standardProd);
|
||||||
})
|
})
|
||||||
.catch((err) => console.log(err));
|
.catch((err) => console.log(err));
|
||||||
@@ -382,7 +383,7 @@ const RequestEditPage = () => {
|
|||||||
fetchedCase?.clientPosition === "Defendant"
|
fetchedCase?.clientPosition === "Defendant"
|
||||||
? fetchedCase?.plaintiffParties
|
? fetchedCase?.plaintiffParties
|
||||||
: fetchedCase?.defendantParties;
|
: fetchedCase?.defendantParties;
|
||||||
|
console.log("final requests", requests);
|
||||||
const editingContent = () => {
|
const editingContent = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -415,29 +416,32 @@ const RequestEditPage = () => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="req-editing-sub-wrapper">
|
<div className="req-editing-sub-wrapper">
|
||||||
<div className="pleading-header">INTERROGATORIES</div>
|
<div className="pleading-header">INTERROGATORIES</div>
|
||||||
{requests?.map((req, i) => (
|
{requests &&
|
||||||
<div className="request-item-outer-div">
|
requests?.map((req, i) => (
|
||||||
<div className="request-text-up">{`${i + 1}.`}</div>
|
<div className="request-item-outer-div">
|
||||||
<div className="req-item-inner-div">
|
<div className="request-text-up">{`${i + 1}.`}</div>
|
||||||
<EditElement
|
<div className="req-item-inner-div">
|
||||||
value={
|
<EditElement
|
||||||
requests && requests.length > 1
|
value={
|
||||||
? // NEVER CHANGE THIS
|
requests && requests.length > 1
|
||||||
req.text
|
? // NEVER CHANGE THIS
|
||||||
: null
|
req.text
|
||||||
}
|
: null
|
||||||
setShowInputEle={setShowInputEle}
|
}
|
||||||
showInputEle={
|
setShowInputEle={setShowInputEle}
|
||||||
requests && requests.length > 1 ? req.showInputEle : null
|
showInputEle={
|
||||||
}
|
requests && requests.length > 1
|
||||||
handleFocus={handleFocus}
|
? req.showInputEle
|
||||||
handleEditValue={handleEditValue}
|
: null
|
||||||
handleBlur={handleBlur}
|
}
|
||||||
i={i}
|
handleFocus={handleFocus}
|
||||||
/>
|
handleEditValue={handleEditValue}
|
||||||
|
handleBlur={handleBlur}
|
||||||
|
i={i}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
))}
|
||||||
))}
|
|
||||||
</div>
|
</div>
|
||||||
<div className="req-editing-sub-wrapper">
|
<div className="req-editing-sub-wrapper">
|
||||||
<div className="pleading-header">REQUESTS FOR PRODUCTION</div>
|
<div className="pleading-header">REQUESTS FOR PRODUCTION</div>
|
||||||
|
|||||||
@@ -68,11 +68,11 @@ export const foundationRogs = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "fb50e08b-2009-4588-89b8-4842481f434a",
|
id: "fb50e08b-2009-4588-89b8-4842481f434a",
|
||||||
text: " Identify all insurance carriers or self-insured funds, by name, address, policy numbers and policy limits, for any insurance policy or fund which may provide coverage for any judgment entered against you in this action.",
|
text: "Identify all insurance carriers or self-insured funds, by name, address, policy numbers and policy limits for any insurance policy or fund which may provide coverage for any judgment entered against you in this action.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "72680c6f-4d7e-4e6b-a932-477e0392db98",
|
id: "72680c6f-4d7e-4e6b-a932-477e0392db98",
|
||||||
text: " If you contend that any other entity or person, including any other party or the Plaintiff, was responsible for the occurrence and Plaintiff's damages, identify such person(s) or entities, and give a concise statement of the facts upon which you rely in support of your contention.",
|
text: "If you contend that any other entity or person, including any other party or the Plaintiff, was responsible for the occurrence and Plaintiff's damages, identify such person(s) or entities, and give a concise statement of the facts upon which you rely in support of your contention.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "6933ce23-8c88-4c6b-877c-c59629685ea1",
|
id: "6933ce23-8c88-4c6b-877c-c59629685ea1",
|
||||||
|
|||||||
Reference in New Issue
Block a user