File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
design-system/components/table/basic-table-cell Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,10 @@ export class Occurrence {
93
93
: undefined
94
94
}
95
95
96
- get durationLabel ( ) : string {
97
- return this . _occurrence . duration_label
96
+ get durationLabel ( ) : string | undefined {
97
+ return this . _occurrence . duration_label ?. length
98
+ ? this . _occurrence . duration_label
99
+ : undefined
98
100
}
99
101
100
102
get displayName ( ) : string {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const BasicTableCell = ({
30
30
} ) }
31
31
style = { { textAlign, ...style } }
32
32
>
33
- { label && < span className = { styles . label } > { label } </ span > }
33
+ { label ? < span className = { styles . label } > { label } </ span > : null }
34
34
{ details &&
35
35
details . map ( ( detail , index ) => (
36
36
< span key = { index } className = { styles . details } >
Original file line number Diff line number Diff line change @@ -147,7 +147,9 @@ export const columns: (projectId: string) => TableColumn<Occurrence>[] = (
147
147
name : translate ( STRING . FIELD_LABEL_DURATION ) ,
148
148
sortField : 'duration' ,
149
149
renderCell : ( item : Occurrence ) => (
150
- < BasicTableCell value = { item . durationLabel } />
150
+ < BasicTableCell
151
+ value = { item . durationLabel ?? translate ( STRING . VALUE_NOT_AVAILABLE ) }
152
+ />
151
153
) ,
152
154
} ,
153
155
{
You can’t perform that action at this time.
0 commit comments