fix: close the issue modal after creating

This commit is contained in:
Shekar Siri 2021-05-20 22:36:39 +05:30
parent 4845d886ff
commit c868f3e6ad

View file

@ -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();