From aaedd4a0c3c18d8fa913bb67180d9b947a98de24 Mon Sep 17 00:00:00 2001 From: Nikhil Ashoka Date: Mon, 9 Jun 2025 22:28:40 +0530 Subject: [PATCH] Fixed Expander slots in PCIe topology - Fixed expander slots in PCIe topology page. Signed-off-by: Nikhil Ashoka --- .../modules/HardwareStatus/PcieTopologyStore.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/store/modules/HardwareStatus/PcieTopologyStore.js b/src/store/modules/HardwareStatus/PcieTopologyStore.js index cc4e8cd351..055326aefb 100644 --- a/src/store/modules/HardwareStatus/PcieTopologyStore.js +++ b/src/store/modules/HardwareStatus/PcieTopologyStore.js @@ -852,10 +852,11 @@ const PcieTopologyStore = { if ( cable.detailedInfo.grandParentInfo.data?.Links ?.PCIeDevices[0]['@odata.id'] === - expanderSlot.Links?.PCIeDevice[0]['@odata.id'] + expanderSlot?.data?.Links?.PCIeDevice[0]['@odata.id'] ) { row['linkType'] = 'Secondary'; - row['parentLinkId'] = expanderSlot.Oem?.IBM?.LinkId; + row['parentLinkId'] = + expanderSlot?.data?.Oem?.IBM?.LinkId; break; } } @@ -880,12 +881,12 @@ const PcieTopologyStore = { if ( cable.detailedInfo.grandParentInfo.data.Links ?.PCIeDevices[0]['@odata.id'] === - expanderSlot.Links?.PCIeDevice[0]['@odata.id'] + expanderSlot?.data?.Links?.PCIeDevice[0]['@odata.id'] ) { row['linkType'] = 'Secondary'; if ( - expanderSlot?.Links?.Processors && - expanderSlot?.Links?.Processors.length > 0 + expanderSlot?.data?.Links?.Processors && + expanderSlot?.data?.Links?.Processors.length > 0 ) { procMembers.map((proc) => { if ( @@ -902,7 +903,8 @@ const PcieTopologyStore = { } }); } - row['parentLinkId'] = expanderSlot.Oem?.IBM?.LinkId; + row['parentLinkId'] = + expanderSlot?.data?.Oem?.IBM?.LinkId; break; } }