Skip to content

Commit

Permalink
make sure that we only show each field once
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Oct 18, 2024
1 parent 38b198a commit 24edfae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/middleware/issueDetails.middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ export function prepareIssueDetailsTemplateParams (req, res, next) {

const entity = entities[pageNumber - 1]

const fields = specification.fields.map(({ datasetField }) => {
const datasetFields = [...new Set(specification.fields.map(({ datasetField }) => datasetField))]

const fields = datasetFields.map(datasetField => {
let valueHtml = ''
let classes = ''
if (!entity[datasetField]) {
Expand Down

0 comments on commit 24edfae

Please sign in to comment.