diff --git a/src/containers/Tenant/Healthcheck/components/HealthcheckIssueDetails/StorageLocation.tsx b/src/containers/Tenant/Healthcheck/components/HealthcheckIssueDetails/StorageLocation.tsx index f21f29d43a..94f1708f9b 100644 --- a/src/containers/Tenant/Healthcheck/components/HealthcheckIssueDetails/StorageLocation.tsx +++ b/src/containers/Tenant/Healthcheck/components/HealthcheckIssueDetails/StorageLocation.tsx @@ -134,7 +134,7 @@ function VDiskInfo({location}: StorageSectionProps) { ); } function PDiskInfo({location}: StorageSectionProps) { - const {node, pool} = location ?? {}; + const {pool} = location ?? {}; const {group} = pool ?? {}; const {vdisk} = group ?? {}; const {pdisk} = vdisk ?? {}; @@ -143,23 +143,33 @@ function PDiskInfo({location}: StorageSectionProps) { return null; } - return pdisk.map((disk) => ( - - {disk.id} - - ) : ( - disk.id - ), - title: i18n('label_pdisk-id'), - }, - {value: disk.path, title: i18n('label_pdisk-path')}, - ]} - /> - )); + return pdisk.map((disk) => { + let nodeId: string | undefined; + let pdiskId: string | undefined; + if (disk.id) { + const splittedId = disk.id.split('-'); + nodeId = splittedId[0]; + pdiskId = splittedId.slice(1).join('-'); + } + + return ( + + {disk.id} + + ) : ( + disk.id + ), + title: i18n('label_pdisk-id'), + }, + {value: disk.path, title: i18n('label_pdisk-path')}, + ]} + /> + ); + }); }