Skip to content

Commit

Permalink
NickAkhmetov/Fix publications page crashing when supporting json data…
Browse files Browse the repository at this point in the history
… is completely missing (#3673)

Co-authored-by: John Conroy <[email protected]>
  • Loading branch information
NickAkhmetov and john-conroy authored Jan 23, 2025
1 parent af0c3a8 commit 039f86b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-fix-publication-regression.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix publications page crashing when supporting json data is completely missing.
2 changes: 1 addition & 1 deletion context/app/static/js/pages/Publication/Publication.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Publication({ publication, vignette_json }) {
const shouldDisplaySection = {
summary: true,
data: true,
visualizations: vignette_json?.vignettes.length > 0 && Boolean(Object.keys(vignette_json).length),
visualizations: vignette_json?.vignettes?.length > 0,
files: Boolean(files?.length),
'bulk-data-transfer': true,
authors: true,
Expand Down

0 comments on commit 039f86b

Please sign in to comment.