Skip to content

Commit

Permalink
fix: use displayDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhaugstulen committed Aug 13, 2024
1 parent a54a929 commit 28a1696
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ const convert = (() => {
(apiProgramSections || [])
.map(apiProgramSection => ({
...apiProgramSection,
description: undefined,
displayDescription: apiProgramSection.description || '',
trackedEntityAttributes: apiProgramSection.trackedEntityAttributes.map(te => te.id),
}))
.sort((a, b) => a.sortOrder - b.sortOrder);
Expand Down Expand Up @@ -95,7 +93,7 @@ const fieldsParam = 'id,displayName,displayShortName,description,programType,sty
'programStageSections[id,displayName,displayDescription,sortOrder,dataElements[id]],' +
// eslint-disable-next-line max-len
'programStageDataElements[compulsory,displayInReports,renderOptionsAsRadio,allowFutureDate,renderType[*],dataElement[id]]]' +
'programSections[id, description, displayFormName, sortOrder, trackedEntityAttributes],' +
'programSections[id, displayDescription, displayFormName, sortOrder, trackedEntityAttributes],' +
// eslint-disable-next-line max-len
'programTrackedEntityAttributes[trackedEntityAttribute[id],displayInList,searchable,mandatory,renderOptionsAsRadio,allowFutureDate]';

Expand Down

0 comments on commit 28a1696

Please sign in to comment.