Fixed bug which caused loading state in GroupForm not to be set correctly

This commit is contained in:
Philipp Czora
2018-08-02 13:47:57 +02:00
parent 1975beff40
commit 55f02238da
3 changed files with 13 additions and 8 deletions

View File

@@ -63,7 +63,7 @@ class GroupForm extends React.Component<Props, State> {
render() {
const { t, loading } = this.props;
const { group } = this.state
const group = this.state.group
let nameField = null;
if (!this.props.group) {
nameField = (
@@ -76,7 +76,7 @@ class GroupForm extends React.Component<Props, State> {
/>
);
}
return (
return (
<form onSubmit={this.onSubmit}>
{nameField}
<InputField