mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
prevent reloading after submit form
This commit is contained in:
@@ -88,13 +88,14 @@ class CreatePermissionForm extends React.Component<Props, State> {
|
||||
return false;
|
||||
};
|
||||
|
||||
submit = () => {
|
||||
submit = e => {
|
||||
this.props.createPermission({
|
||||
name: this.state.name,
|
||||
type: this.state.type,
|
||||
groupPermission: this.state.groupPermission
|
||||
});
|
||||
this.removeState();
|
||||
e.preventDefault();
|
||||
};
|
||||
|
||||
removeState = () => {
|
||||
|
||||
Reference in New Issue
Block a user