diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-07-24 10:15:18 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:48:23 +0200 |
| commit | 2892f05baeb79f77586eb36d3506a57b1d20b8aa (patch) | |
| tree | 80405c59a947ea8f2316980e7e77ce0a20e0b421 /frontend/src/containers/app/sidebars/project | |
| parent | ba5bce34d632ea9155dc957e90068d9f40b439ee (diff) | |
Increase component limits and add overflow handling
Diffstat (limited to 'frontend/src/containers/app/sidebars/project')
| -rw-r--r-- | frontend/src/containers/app/sidebars/project/TopologyListContainer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/containers/app/sidebars/project/TopologyListContainer.js b/frontend/src/containers/app/sidebars/project/TopologyListContainer.js index f65982ef..e1de18f9 100644 --- a/frontend/src/containers/app/sidebars/project/TopologyListContainer.js +++ b/frontend/src/containers/app/sidebars/project/TopologyListContainer.js @@ -4,7 +4,7 @@ import { setCurrentTopology } from '../../../../actions/topology/building' import { openNewTopologyModal } from '../../../../actions/modals/topology' import { withRouter } from 'react-router-dom' import { getState } from '../../../../util/state-utils' -import { deleteScenario } from '../../../../actions/scenarios' +import { deleteTopology } from '../../../../actions/topologies' const mapStateToProps = (state) => { let topologies = state.objects.project[state.currentProjectId] @@ -33,7 +33,7 @@ const mapDispatchToProps = (dispatch, ownProps) => { onDeleteTopology: async (id) => { if (id) { const state = await getState(dispatch) - dispatch(deleteScenario(id)) + dispatch(deleteTopology(id)) dispatch(setCurrentTopology(state.objects.project[state.currentProjectId].topologyIds[0])) ownProps.history.push(`/projects/${state.currentProjectId}`) } |
