Skip to content

Commit 9348f2c

Browse files
authored
fix missing tag fields in disco table (#1544)
1 parent aed6344 commit 9348f2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Discovery/Discovery.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ const Discovery: React.FunctionComponent<Props> = (props: Props) => {
386386
width: config.tagColumnWidth || '200px',
387387
render: (_, record) => (
388388
<React.Fragment>
389-
{record[config.minimalFieldMapping.tagsListFieldName]?.map(({ name, category }) => {
389+
{(record[config.minimalFieldMapping.tagsListFieldName] || []).map(({ name, category }) => {
390390
const isSelected = !!props.selectedTags[name];
391391
const color = getTagColor(category, config);
392392
if (typeof name !== 'string') {

src/Discovery/DiscoveryListView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const DiscoveryListView: React.FunctionComponent<Props> = (props: Props) => {
173173
{ config.features.tagsInDescription?.enabled
174174
? (
175175
<div className='discovery-table__row-horizontal-content'>
176-
{record[config.minimalFieldMapping.tagsListFieldName]?.map(({ name, category }) => {
176+
{(record[config.minimalFieldMapping.tagsListFieldName] || []).map(({ name, category }) => {
177177
const isSelected = !!props.selectedTags[name];
178178
const color = getTagColor(category, config);
179179
if (typeof name !== 'string') {

0 commit comments

Comments
 (0)