From 28a1696e48b34f973d697d7e2bc822f3fd70431b Mon Sep 17 00:00:00 2001 From: eirikhaugstulen Date: Tue, 13 Aug 2024 10:17:54 +0200 Subject: [PATCH] fix: use displayDescription --- .../programs/quickStoreOperations/storePrograms.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core_modules/capture-core/metaDataStoreLoaders/programs/quickStoreOperations/storePrograms.js b/src/core_modules/capture-core/metaDataStoreLoaders/programs/quickStoreOperations/storePrograms.js index 699ab13007..529cb771b1 100644 --- a/src/core_modules/capture-core/metaDataStoreLoaders/programs/quickStoreOperations/storePrograms.js +++ b/src/core_modules/capture-core/metaDataStoreLoaders/programs/quickStoreOperations/storePrograms.js @@ -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); @@ -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]';