File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import {EMPTY_DATA_PLACEHOLDER} from '../../utils/constants';
88import { createPDiskDeveloperUILink } from '../../utils/developerUI/developerUI' ;
99import type { PreparedPDisk } from '../../utils/disks/types' ;
1010import { useTypedSelector } from '../../utils/hooks' ;
11- import { bytesToGB } from '../../utils/utils' ;
11+ import { bytesToGB , isNumeric } from '../../utils/utils' ;
1212import { InfoViewer } from '../InfoViewer' ;
1313import type { InfoViewerItem } from '../InfoViewer' ;
1414import { LinkWithIcon } from '../LinkWithIcon/LinkWithIcon' ;
@@ -54,7 +54,7 @@ export const preparePDiskData = (
5454 pdiskData . push ( { label : 'Path' , value : Path } ) ;
5555 }
5656
57- if ( ! isNaN ( Number ( TotalSize ) ) ) {
57+ if ( isNumeric ( TotalSize ) ) {
5858 pdiskData . push ( {
5959 label : 'Available' ,
6060 value : `${ bytesToGB ( AvailableSize ) } of ${ bytesToGB ( TotalSize ) } ` ,
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export function prepareWhiteboardVDiskData(
4545 ? prepareWhiteboardPDiskData ( { ...PDisk , NodeId : PDisk ?. NodeId ?? NodeId } )
4646 : undefined ;
4747
48- const actualPDiskId = PDiskId ?? PDisk ?. PDiskId ;
48+ const actualPDiskId = PDiskId ?? preparedPDisk ?. PDiskId ;
4949
5050 const vDiskSizeFields = prepareVDiskSizeFields ( {
5151 AvailableSize : AvailableSize ?? PDisk ?. AvailableSize ,
You can’t perform that action at this time.
0 commit comments