diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-07-03 11:46:29 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:47:22 +0200 |
| commit | 52865c97f820b883977179930ce4961abdb39c12 (patch) | |
| tree | 6b429d80694d7e5729fb1f41ff8f9ba4b2d07d4b /frontend/src/components/app/sidebars | |
| parent | 39277c91281dbc7bd40bdffabc5b5675e9ede483 (diff) | |
Fix integer IDs and topology deletion
Diffstat (limited to 'frontend/src/components/app/sidebars')
| -rw-r--r-- | frontend/src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js b/frontend/src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js index 362483bf..75b00c54 100644 --- a/frontend/src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js +++ b/frontend/src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js @@ -6,7 +6,7 @@ const NewRoomConstructionComponent = ({ onCancel, currentRoomInConstruction, }) => { - if (currentRoomInConstruction === -1) { + if (currentRoomInConstruction === '-1') { return ( <div className="btn btn-outline-primary btn-block" onClick={onStart}> <span className="fa fa-plus mr-2"/> |
