Skip to content

Commit cb0e908

Browse files
committed
fix
1 parent d7fde7f commit cb0e908

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

src/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.tsx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,15 @@ interface SlotProps<T extends SlotItemType> {
7474
nodeId?: string | number;
7575
}
7676

77-
function Slot<T extends SlotItemType>({item, pDiskId, nodeId}: SlotProps<T>) {
77+
function Slot<T extends SlotItemType>({item, nodeId}: SlotProps<T>) {
7878
const renderContent = () => {
7979
if (isVDiskSlot(item)) {
80-
const vDiskPagePath =
81-
valueIsDefined(item.SlotData?.VDiskSlotId) &&
82-
valueIsDefined(pDiskId) &&
83-
valueIsDefined(nodeId)
84-
? getVDiskPagePath({
85-
pDiskId,
86-
nodeId,
87-
vDiskId: item.SlotData.StringifiedId,
88-
})
89-
: undefined;
80+
const vDiskPagePath = valueIsDefined(item.SlotData?.StringifiedId)
81+
? getVDiskPagePath({
82+
nodeId,
83+
vDiskId: item.SlotData.StringifiedId,
84+
})
85+
: undefined;
9086

9187
return (
9288
<HoverPopup

src/containers/Tenant/Healthcheck/components/HealthcheckIssueDetails/StorageLocation.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ function VDiskInfo({location}: StorageSectionProps) {
123123
{
124124
vDiskId: id,
125125
nodeId: node?.id,
126-
pDiskId: undefined,
127126
},
128127
{database},
129128
)}

0 commit comments

Comments
 (0)