diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-07-22 14:31:03 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:48:19 +0200 |
| commit | d8eb2d7fd4cf15706bced6c6ceca320cfaecb2f7 (patch) | |
| tree | cc883f95b5580a4f399e665bcda16d52aa04bb32 /frontend/src/containers/modals | |
| parent | 92ce9387f5c3ce54b4077ef6a5f604fc2cfe6ade (diff) | |
Implement topology duplication
Diffstat (limited to 'frontend/src/containers/modals')
| -rw-r--r-- | frontend/src/containers/modals/NewTopologyModal.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/frontend/src/containers/modals/NewTopologyModal.js b/frontend/src/containers/modals/NewTopologyModal.js index 99c42367..0acf6cf2 100644 --- a/frontend/src/containers/modals/NewTopologyModal.js +++ b/frontend/src/containers/modals/NewTopologyModal.js @@ -21,14 +21,13 @@ const mapDispatchToProps = (dispatch) => { return { onCreateTopology: (name) => { if (name) { - dispatch(addTopology({ name, rooms: [] })) + dispatch(addTopology(name, undefined)) } dispatch(closeNewTopologyModal()) }, - onDuplicateTopology: (name) => { + onDuplicateTopology: (name, id) => { if (name) { - // TODO different handling here - dispatch(addTopology({ name, rooms: [] })) + dispatch(addTopology(name, id)) } dispatch(closeNewTopologyModal()) }, |
