From eb67e905a1ec846668b0d5c8cbd48f5442224e36 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 20 May 2021 22:36:39 +0530 Subject: [PATCH] fix: close the issue modal after creating --- frontend/app/components/Session_/Issues/IssueForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/Session_/Issues/IssueForm.js b/frontend/app/components/Session_/Issues/IssueForm.js index f305c3ee7..365c367d9 100644 --- a/frontend/app/components/Session_/Issues/IssueForm.js +++ b/frontend/app/components/Session_/Issues/IssueForm.js @@ -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();