This commit is contained in:
Kenneth Jannette
2024-03-12 00:43:42 -05:00
parent 79f90a6fee
commit 8c6659933c
3 changed files with 8 additions and 9 deletions

View File

@@ -143,18 +143,13 @@ const DocumentListPage = ({ perPage }) => {
{ label: "Associated case name z - a", value: "parentCaseName2" },
];
function handleNavigate(
documentId,
responseGenerations,
caseId,
documentType
) {
function handleNavigate(documentId, caseId, documentType) {
const docId = String(documentId);
const _resGen = String(responseGenerations);
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}`);
}
}