diff --git a/src/components/GroupHistorySearcher.js b/src/components/GroupHistorySearcher.js index 61ebc18..6605fd6 100644 --- a/src/components/GroupHistorySearcher.js +++ b/src/components/GroupHistorySearcher.js @@ -28,7 +28,9 @@ function GroupHistorySearcher({ const fetch = (params) => dispatch(fetchGroupHistory(params)); const headers = () => [ + 'groupHistory.primaryRecipient', 'groupHistory.head', + 'groupHistory.secondaryRecipient', 'groupHistory.dateUpdated', 'groupHistory.version', 'groupHistory.members', @@ -36,10 +38,18 @@ function GroupHistorySearcher({ ]; const itemFormatters = () => [ + (groupHistory) => { + const jsonExt = groupHistory?.jsonExt ? JSON.parse(groupHistory.jsonExt) : null; + return jsonExt?.primary_recipient ?? EMPTY_STRING; + }, (groupHistory) => { const jsonExt = groupHistory?.jsonExt ? JSON.parse(groupHistory.jsonExt) : null; return jsonExt?.head ?? EMPTY_STRING; }, + (groupHistory) => { + const jsonExt = groupHistory?.jsonExt ? JSON.parse(groupHistory.jsonExt) : null; + return jsonExt?.secondary_recipient ?? EMPTY_STRING; + }, (groupHistory) => (groupHistory?.dateUpdated ? formatDateFromISO(groupHistory.dateUpdated) : EMPTY_STRING), diff --git a/src/translations/en.json b/src/translations/en.json index d5c3c95..e44d857 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -182,6 +182,8 @@ "headPanelTitle": "General Information", "id": "ID", "head": "Head", + "primaryRecipient": "Primary Recipient", + "secondaryRecipient": "Secondary Recipient", "dateUpdated": "Date Updated", "version": "Version", "any": "ANY",