File tree 1 file changed +9
-5
lines changed
packages/ui-admin/src/health/monitoring
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,9 @@ const BotHealth: FC<Props> = props => {
84
84
columns : [
85
85
{
86
86
Header : 'Status' ,
87
+ id : `status-${ key } ` ,
87
88
Cell : cell => {
88
- switch ( _ . get ( cell . original , ` data[${ key } ]. status` ) ) {
89
+ switch ( _ . get ( cell . original . data [ ` ${ key } ` ] , ' status' ) ) {
89
90
default :
90
91
return 'N/A'
91
92
case 'unhealthy' :
@@ -99,25 +100,28 @@ const BotHealth: FC<Props> = props => {
99
100
Filter : filterStatus ,
100
101
filterable : true ,
101
102
width : 100 ,
102
- accessor : ` data[${ key } ]. status`
103
+ accessor : row => _ . get ( row . data [ ` ${ key } ` ] , ' status' , 0 )
103
104
} ,
104
105
{
105
106
Header : 'Critical' ,
107
+ id : `critical-${ key } ` ,
106
108
width : 60 ,
107
109
className : 'center' ,
108
- accessor : ` data[${ key } ]. criticalCount`
110
+ accessor : row => _ . get ( row . data [ ` ${ key } ` ] , ' criticalCount' , 0 )
109
111
} ,
110
112
{
111
113
Header : 'Errors' ,
114
+ id : `error-${ key } ` ,
112
115
width : 60 ,
113
116
className : 'center' ,
114
- accessor : ` data[${ key } ]. errorCount`
117
+ accessor : row => _ . get ( row . data [ ` ${ key } ` ] , ' errorCount' , 0 )
115
118
} ,
116
119
{
117
120
Header : 'Warnings' ,
121
+ id : `warning-${ key } ` ,
118
122
width : 60 ,
119
123
className : 'center' ,
120
- accessor : ` data[${ key } ]. warningCount`
124
+ accessor : row => _ . get ( row . data [ ` ${ key } ` ] , ' warningCount' , 0 )
121
125
}
122
126
]
123
127
}
You can’t perform that action at this time.
0 commit comments