summaryrefslogtreecommitdiff
path: root/frontend/src/containers/app/map/RackEnergyFillContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/containers/app/map/RackEnergyFillContainer.js')
-rw-r--r--frontend/src/containers/app/map/RackEnergyFillContainer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/containers/app/map/RackEnergyFillContainer.js b/frontend/src/containers/app/map/RackEnergyFillContainer.js
index e25cd37d..d5989839 100644
--- a/frontend/src/containers/app/map/RackEnergyFillContainer.js
+++ b/frontend/src/containers/app/map/RackEnergyFillContainer.js
@@ -3,7 +3,7 @@ import RackFillBar from '../../../components/app/map/elements/RackFillBar'
const mapStateToProps = (state, ownProps) => {
let energyConsumptionTotal = 0
- const rack = state.objects.rack[state.objects.tile[ownProps.tileId].objectId]
+ const rack = state.objects.rack[state.objects.tile[ownProps.tileId].rackId]
const machineIds = rack.machineIds
machineIds.forEach(machineId => {
if (machineId !== null) {