summaryrefslogtreecommitdiff
path: root/frontend/src/sagas/topology.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/sagas/topology.js')
-rw-r--r--frontend/src/sagas/topology.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/sagas/topology.js b/frontend/src/sagas/topology.js
index 0be619a9..e7ce9043 100644
--- a/frontend/src/sagas/topology.js
+++ b/frontend/src/sagas/topology.js
@@ -199,6 +199,7 @@ export function* onAddRackToTile(action) {
const topologyId = yield select((state) => state.currentTopologyId)
const rack = {
_id: uuid(),
+ name: 'Rack',
capacity: DEFAULT_RACK_SLOT_CAPACITY,
powerCapacityW: DEFAULT_RACK_POWER_CAPACITY,
}
@@ -218,7 +219,8 @@ export function* onAddMachine(action) {
const rack = yield select((state) => state.objects.rack[rackId])
const machine = {
- _id: -1,
+ _id: uuid(),
+ rackId,
position: action.position,
cpuIds: [],
gpuIds: [],