@@ -5,7 +5,7 @@ import type {TSystemStateInfo} from '../../types/api/nodes';
5
5
import { LOAD_AVERAGE_TIME_INTERVALS } from '../../utils/constants' ;
6
6
import { calcUptime } from '../../utils/dataFormatters/dataFormatters' ;
7
7
8
- import InfoViewer from '../InfoViewer/InfoViewer' ;
8
+ import InfoViewer , { type InfoViewerItem } from '../InfoViewer/InfoViewer' ;
9
9
import { ProgressViewer } from '../ProgressViewer/ProgressViewer' ;
10
10
import { PoolUsage } from '../PoolUsage/PoolUsage' ;
11
11
@@ -24,12 +24,19 @@ export const FullNodeViewer = ({node, className}: FullNodeViewerProps) => {
24
24
value : Address ,
25
25
} ) ) ;
26
26
27
- const commonInfo = [
27
+ const commonInfo : InfoViewerItem [ ] = [ ] ;
28
+
29
+ // Do not add DB field for static nodes (they have no Tenants)
30
+ if ( node ?. Tenants ?. length ) {
31
+ commonInfo . push ( { label : 'Database' , value : node . Tenants [ 0 ] } ) ;
32
+ }
33
+
34
+ commonInfo . push (
28
35
{ label : 'Version' , value : node ?. Version } ,
29
36
{ label : 'Uptime' , value : calcUptime ( node ?. StartTime ) } ,
30
37
{ label : 'DC' , value : node ?. DataCenterDescription } ,
31
38
{ label : 'Rack' , value : node ?. Rack } ,
32
- ] ;
39
+ ) ;
33
40
34
41
const averageInfo = node ?. LoadAverage ?. map ( ( load , loadIndex ) => ( {
35
42
label : LOAD_AVERAGE_TIME_INTERVALS [ loadIndex ] ,
0 commit comments