Skip to content

Commit

Permalink
Added missing condition (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArronChave3 committed Aug 15, 2024
1 parent d5b8ff9 commit 73564fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/utils/caseListTableData.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const constructTableData = (params, data) => {
rows: []
}

if (params.subsection) {
if (params.subsection === 'removed') {
tableData.head.push({ text: 'Libra case number', format: 'numeric' })
}

Expand Down Expand Up @@ -133,8 +133,8 @@ const constructTableData = (params, data) => {

if (params.workflow.enabled) {
let html = '<select class="workflow-tasks-status-selector" aria-label="Admin prep status" data-form-action="/workflow/tasks/prep/state?hearing=' + item.hearingId +
'&defendant=' + item.defendantId + '" data-defendant-fullname="' +
sanitisedDefendantFullName + '">'
'&defendant=' + item.defendantId + '" data-defendant-fullname="' +
sanitisedDefendantFullName + '">'

params.workflow.tasks.prep.items.forEach(prepItem => {
html = html + '<option value="' + prepItem.id + '" data-css-class="' + prepItem.cssClass + '"'
Expand Down

0 comments on commit 73564fe

Please sign in to comment.