summaryrefslogtreecommitdiff
path: root/src/containers/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/app')
-rw-r--r--src/containers/app/map/layers/RoomHoverLayer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/containers/app/map/layers/RoomHoverLayer.js b/src/containers/app/map/layers/RoomHoverLayer.js
index 801ce549..fbcbed7e 100644
--- a/src/containers/app/map/layers/RoomHoverLayer.js
+++ b/src/containers/app/map/layers/RoomHoverLayer.js
@@ -20,7 +20,7 @@ const mapStateToProps = state => {
const newRoom = Object.assign({}, state.objects.room[state.construction.currentRoomInConstruction]);
const oldRooms = Object.keys(state.objects.room)
.map(id => Object.assign({}, state.objects.room[id]))
- .filter(room => room.datacenterId === state.currentDatacenterId
+ .filter(room => state.objects.datacenter[state.currentDatacenterId].roomIds.indexOf(room.id) !== -1
&& room.id !== state.construction.currentRoomInConstruction);
[...oldRooms, newRoom].forEach(room => {