Location codes on Hardware status-Inventory and LEDs
Display location number on hardware inventory items
Signed-off-by: Sneha Patel <Snehaben.Patel@ibm.com>
Change-Id: Ib5555191f21ac4546d0b2e2af5b395aaa3a5357e
diff --git a/src/store/modules/HardwareStatus/BmcStore.js b/src/store/modules/HardwareStatus/BmcStore.js
index f58dc63..c042a83 100644
--- a/src/store/modules/HardwareStatus/BmcStore.js
+++ b/src/store/modules/HardwareStatus/BmcStore.js
@@ -25,7 +25,7 @@
bmc.id = data.Id;
bmc.lastResetTime = new Date(data.LastResetTime);
bmc.identifyLed = data.LocationIndicatorActive;
- bmc.locationNumber = data.LocationNumber;
+ bmc.locationNumber = data.Location?.PartLocation?.ServiceLabel;
bmc.manufacturer = data.manufacturer;
bmc.managerType = data.ManagerType;
bmc.model = data.Model;