From 52865c97f820b883977179930ce4961abdb39c12 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 3 Jul 2020 11:46:29 +0200 Subject: Fix integer IDs and topology deletion --- frontend/src/containers/app/map/layers/RoomHoverLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src/containers/app/map/layers') diff --git a/frontend/src/containers/app/map/layers/RoomHoverLayer.js b/frontend/src/containers/app/map/layers/RoomHoverLayer.js index c05627ea..2c886c2f 100644 --- a/frontend/src/containers/app/map/layers/RoomHoverLayer.js +++ b/frontend/src/containers/app/map/layers/RoomHoverLayer.js @@ -11,7 +11,7 @@ const mapStateToProps = state => { return { mapPosition: state.map.position, mapScale: state.map.scale, - isEnabled: () => state.construction.currentRoomInConstruction !== -1, + isEnabled: () => state.construction.currentRoomInConstruction !== '-1', isValid: (x, y) => { const newRoom = Object.assign( {}, -- cgit v1.2.3