Skip to content

Commit aaedd4a

Browse files
committed
Fixed Expander slots in PCIe topology
- Fixed expander slots in PCIe topology page. Signed-off-by: Nikhil Ashoka <[email protected]>
1 parent 8cb6ea3 commit aaedd4a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/store/modules/HardwareStatus/PcieTopologyStore.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -852,10 +852,11 @@ const PcieTopologyStore = {
852852
if (
853853
cable.detailedInfo.grandParentInfo.data?.Links
854854
?.PCIeDevices[0]['@odata.id'] ===
855-
expanderSlot.Links?.PCIeDevice[0]['@odata.id']
855+
expanderSlot?.data?.Links?.PCIeDevice[0]['@odata.id']
856856
) {
857857
row['linkType'] = 'Secondary';
858-
row['parentLinkId'] = expanderSlot.Oem?.IBM?.LinkId;
858+
row['parentLinkId'] =
859+
expanderSlot?.data?.Oem?.IBM?.LinkId;
859860
break;
860861
}
861862
}
@@ -880,12 +881,12 @@ const PcieTopologyStore = {
880881
if (
881882
cable.detailedInfo.grandParentInfo.data.Links
882883
?.PCIeDevices[0]['@odata.id'] ===
883-
expanderSlot.Links?.PCIeDevice[0]['@odata.id']
884+
expanderSlot?.data?.Links?.PCIeDevice[0]['@odata.id']
884885
) {
885886
row['linkType'] = 'Secondary';
886887
if (
887-
expanderSlot?.Links?.Processors &&
888-
expanderSlot?.Links?.Processors.length > 0
888+
expanderSlot?.data?.Links?.Processors &&
889+
expanderSlot?.data?.Links?.Processors.length > 0
889890
) {
890891
procMembers.map((proc) => {
891892
if (
@@ -902,7 +903,8 @@ const PcieTopologyStore = {
902903
}
903904
});
904905
}
905-
row['parentLinkId'] = expanderSlot.Oem?.IBM?.LinkId;
906+
row['parentLinkId'] =
907+
expanderSlot?.data?.Oem?.IBM?.LinkId;
906908
break;
907909
}
908910
}

0 commit comments

Comments
 (0)