Skip to content

Commit

Permalink
fix(appellate): Prevent null case_id in href
Browse files Browse the repository at this point in the history
  • Loading branch information
ERosendo committed Jan 24, 2025
1 parent de4aa9b commit a538050
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/appellate/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ let APPELLATE = {
a.setAttribute('target', '_self');

let url = new URL(a.href);
url.searchParams.set('caseId', pacerCaseId);
// if a case id is found, it adds it to the link href
if (pacerCaseId) url.searchParams.set('caseId', pacerCaseId);

if (docNum) {
url.searchParams.set('recapDocNum', docNum);
Expand Down

0 comments on commit a538050

Please sign in to comment.