Updated group create to close modal on submit
• Updated: - group create to close modal on submit
This commit is contained in:
parent
27f3658fd9
commit
85ec3060d9
|
@ -10,6 +10,7 @@ import {
|
|||
setGroup,
|
||||
resetEditor,
|
||||
} from '../actions/group_editor'
|
||||
import { closeModal } from '../actions/modal'
|
||||
import ColumnIndicator from '../components/column_indicator'
|
||||
import Button from '../components/button'
|
||||
import Divider from '../components/divider'
|
||||
|
@ -60,7 +61,10 @@ const mapDispatchToProps = (dispatch) => ({
|
|||
onSetGroup: (group) => {
|
||||
dispatch(setGroup(group))
|
||||
},
|
||||
onSubmit: (routerHistory) => dispatch(submit(routerHistory)),
|
||||
onSubmit: (routerHistory) => {
|
||||
dispatch(submit(routerHistory))
|
||||
dispatch(closeModal())
|
||||
},
|
||||
})
|
||||
|
||||
export default
|
||||
|
|
Loading…
Reference in New Issue