more
This commit is contained in:
@@ -140,14 +140,23 @@ const DocumentListPage = ({ perPage }) => {
|
||||
{ label: "Associated case name z - a", value: "parentCaseName2" },
|
||||
];
|
||||
|
||||
function handleNavigate(documentId, caseId, documentType) {
|
||||
function handleNavigate(
|
||||
documentId,
|
||||
caseId,
|
||||
documentType,
|
||||
clientPosition,
|
||||
responseGenerations
|
||||
) {
|
||||
const docId = String(documentId);
|
||||
const docType = String(documentType);
|
||||
if (documentType === "interrogatories-out") {
|
||||
//may include other in future ie req for admission
|
||||
navigate(`/reqedit/${docId}/interrogatories-out/${caseId}`);
|
||||
} else {
|
||||
console.log("----------------------> handeNave else");
|
||||
navigate(`/docedit/${docId}/${caseId}`);
|
||||
navigate(
|
||||
`/docedit/${docId}/${caseId}/${docType}/${clientPosition}/${responseGenerations}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -217,6 +226,7 @@ const DocumentListPage = ({ perPage }) => {
|
||||
handleNavigate={handleNavigate}
|
||||
displayDeleteButton={true}
|
||||
responseGenerations={doc.responseGenerations}
|
||||
clientPosition={doc.clientPosition}
|
||||
/>
|
||||
))
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user