diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2023-03-26 22:16:29 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2023-03-27 20:37:40 +0100 |
| commit | e7d5c086832a24f3c6b98258b0b8eb1fbbd3336a (patch) | |
| tree | 3d6fc9128dd9ff82434c8ad112a01d023791cba5 /opendc-web/opendc-web-ui/src/redux/reducers/topology/index.js | |
| parent | 42caec326fe5b6f4a0a2fe73e4cf2ba26ecba23d (diff) | |
bug(web): Fix rack deletion
This change fixes #139 which reports that racks cannot be deleted. This
was due to the tileId property being dropped in the backend for racks.
Instead, we use the tileId passed in the action directly.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/redux/reducers/topology/index.js')
| -rw-r--r-- | opendc-web/opendc-web-ui/src/redux/reducers/topology/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-web/opendc-web-ui/src/redux/reducers/topology/index.js b/opendc-web/opendc-web-ui/src/redux/reducers/topology/index.js index b1c7d29e..2c849387 100644 --- a/opendc-web/opendc-web-ui/src/redux/reducers/topology/index.js +++ b/opendc-web/opendc-web-ui/src/redux/reducers/topology/index.js @@ -35,7 +35,7 @@ function objects(state = {}, action) { storages: STORAGE_UNITS, machines: machine(state.machines, action, state), racks: rack(state.racks, action, state), - tiles: tile(state.tiles, action, state), + tiles: tile(state.tiles, action), rooms: room(state.rooms, action, state), root: topology(state.root, action, state), } |
