File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,9 @@ import {cn} from '../../utils/cn';
99import {
1010 formatStorageValuesToGb ,
1111 formatUptimeInSeconds ,
12- stringifyVdiskId ,
1312} from '../../utils/dataFormatters/dataFormatters' ;
1413import { createVDiskDeveloperUILink } from '../../utils/developerUI/developerUI' ;
15- import { getSeverityColor , isFullVDiskData } from '../../utils/disks/helpers' ;
14+ import { getSeverityColor } from '../../utils/disks/helpers' ;
1615import type { PreparedVDisk } from '../../utils/disks/types' ;
1716import { useIsUserAllowedToMakeChanges } from '../../utils/hooks/useIsUserAllowedToMakeChanges' ;
1817import { bytesToSpeed } from '../../utils/utils' ;
@@ -190,21 +189,9 @@ export function VDiskInfo<T extends PreparedVDisk>({
190189 } ) ;
191190 }
192191
193- // Show donors list when replication is in progress
192+ // Show donors list when replication is in progress
194193 if ( Replicated === false && VDiskState === EVDiskState . OK && Donors && Donors . length > 0 ) {
195- const donorsList = Donors . map ( ( donor ) => {
196- if ( isFullVDiskData ( donor ) ) {
197- // Full VDisk data - use VDiskId if available
198- return stringifyVdiskId ( donor . VDiskId ) ;
199- } else {
200- // TVSlotId data - construct from NodeId-PDiskId-VSlotId
201- const { NodeId : dNodeId , PDiskId : dPDiskId , VSlotId} = donor ;
202- if ( valueIsDefined ( dNodeId ) && valueIsDefined ( dPDiskId ) && valueIsDefined ( VSlotId ) ) {
203- return `${ dNodeId } -${ dPDiskId } -${ VSlotId } ` ;
204- }
205- return null ;
206- }
207- } )
194+ const donorsList = Donors . map ( ( donor ) => donor . StringifiedId )
208195 . filter ( Boolean )
209196 . join ( ', ' ) ;
210197
You can’t perform that action at this time.
0 commit comments