fix: close the issue modal after creating
This commit is contained in:
parent
37dd7067c6
commit
eb67e905a1
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ class IssueForm extends React.PureComponent {
|
|||
|
||||
addActivity(sessionId, instance).then(() => {
|
||||
const { errors } = this.props;
|
||||
if (errors.length === 0) {
|
||||
if (!errors || errors.length === 0) {
|
||||
this.props.init({projectId: instance.projectId});
|
||||
this.props.fetchAssignments(sessionId);
|
||||
this.props.closeHandler();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue