Skip to content

Commit

Permalink
[ASSB-1383] Fix date issues in downloads (#1585)
Browse files Browse the repository at this point in the history
* [ASSB-1383] Fix RA placeholder + Apply upstream changes
Upstream resolves ASSB-1393

* [ASSB-1383] Fix RA placeholder + Apply upstream changes
Upstream resolves ASSB-1393, ASL-4507 defect
  • Loading branch information
jeff-horton-ho-sas authored May 9, 2024
1 parent 473ea45 commit 3248e91
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asl/pages",
"version": "31.3.2",
"version": "31.3.3",
"description": "",
"main": "index.js",
"style": "pages/common/assets/sass/style.scss",
Expand All @@ -26,7 +26,7 @@
},
"homepage": "https://github.com/UKHomeOffice/asl-pages#readme",
"dependencies": {
"@asl/projects": "^15.2.0",
"@asl/projects": "^15.2.1",
"@asl/service": "^10.3.2",
"@joefitter/docx": "^4.7.0",
"@ukhomeoffice/asl-components": "^13.4.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export default function RetrospectivePlaceholder({ project, version, field }) {
return null;
}

const content = render(field.content, { raDate: format(project.raDate, dateFormat.long), hasRaDate: !!project.raDate });
const hasRaDate = !!project.raDate;
const raDate = hasRaDate ? format(project.raDate, dateFormat.long) : null;

const content = render(field.content, { raDate, hasRaDate });

return (
<div className="retrospective-placeholder">
Expand Down

0 comments on commit 3248e91

Please sign in to comment.