File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ const Discovery: React.FunctionComponent<Props> = (props: Props) => {
386
386
width : config . tagColumnWidth || '200px' ,
387
387
render : ( _ , record ) => (
388
388
< React . Fragment >
389
- { record [ config . minimalFieldMapping . tagsListFieldName ] ? .map ( ( { name, category } ) => {
389
+ { ( record [ config . minimalFieldMapping . tagsListFieldName ] || [ ] ) . map ( ( { name, category } ) => {
390
390
const isSelected = ! ! props . selectedTags [ name ] ;
391
391
const color = getTagColor ( category , config ) ;
392
392
if ( typeof name !== 'string' ) {
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ const DiscoveryListView: React.FunctionComponent<Props> = (props: Props) => {
173
173
{ config . features . tagsInDescription ?. enabled
174
174
? (
175
175
< div className = 'discovery-table__row-horizontal-content' >
176
- { record [ config . minimalFieldMapping . tagsListFieldName ] ? .map ( ( { name, category } ) => {
176
+ { ( record [ config . minimalFieldMapping . tagsListFieldName ] || [ ] ) . map ( ( { name, category } ) => {
177
177
const isSelected = ! ! props . selectedTags [ name ] ;
178
178
const color = getTagColor ( category , config ) ;
179
179
if ( typeof name !== 'string' ) {
You can’t perform that action at this time.
0 commit comments