-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CDPS-716 add no cell prisoners page #136
Conversation
} | ||
|
||
return null | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taken directly from DPS. I assume the cells always come back with establishment prefixes.... seem to in dev
179cc51
to
ec4efbd
Compare
server/services/movementsService.ts
Outdated
const { content: cellSwapPrisoners } = await prisonerSearchClient.getCswapPrisonersInEstablishment(caseLoadId) | ||
if (!cellSwapPrisoners?.length) return [] | ||
|
||
const prisonerNumbers = cellSwapPrisoners.map(prisoner => prisoner.prisonerNumber) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this is redundant as you could just use
cellSwapPrisoners.map(async prisoner =>
and delete the const prisoner = ...
in the following Promise.all
{% else %} | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h1 class="govuk-heading-l">{{ title }}</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be pageTitle
ec4efbd
to
d3ae115
Compare
No description provided.