summaryrefslogtreecommitdiff
path: root/frontend/src/containers/app/map/RackSpaceFillContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/containers/app/map/RackSpaceFillContainer.js')
-rw-r--r--frontend/src/containers/app/map/RackSpaceFillContainer.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/frontend/src/containers/app/map/RackSpaceFillContainer.js b/frontend/src/containers/app/map/RackSpaceFillContainer.js
index 8110b1fb..0509a5a5 100644
--- a/frontend/src/containers/app/map/RackSpaceFillContainer.js
+++ b/frontend/src/containers/app/map/RackSpaceFillContainer.js
@@ -2,12 +2,10 @@ import { connect } from 'react-redux'
import RackFillBar from '../../../components/app/map/elements/RackFillBar'
const mapStateToProps = (state, ownProps) => {
- const machineIds =
- state.objects.rack[state.objects.tile[ownProps.tileId].rackId].machineIds
+ const machineIds = state.objects.rack[state.objects.tile[ownProps.tileId].rackId].machineIds
return {
type: 'space',
- fillFraction:
- machineIds.filter(id => id !== null).length / machineIds.length,
+ fillFraction: machineIds.filter((id) => id !== null).length / machineIds.length,
}
}