From 8fae076fd6064d0e8e0cbccaf7bd689915cb9883 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Fri, 17 May 2024 11:35:37 +0530 Subject: [PATCH] chore: disccard changes made after creating issue (#4484) --- web/components/issues/issue-modal/modal.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/web/components/issues/issue-modal/modal.tsx b/web/components/issues/issue-modal/modal.tsx index a3171bd88..04970028b 100644 --- a/web/components/issues/issue-modal/modal.tsx +++ b/web/components/issues/issue-modal/modal.tsx @@ -170,11 +170,9 @@ export const CreateUpdateIssueModal: React.FC = observer((prop path: router.asPath, }); !createMore && handleClose(); - if (createMore) { - issueTitleRef && issueTitleRef?.current?.focus(); - setDescription("

"); - setChangesMade(null); - } + if (createMore) issueTitleRef && issueTitleRef?.current?.focus(); + setDescription("

"); + setChangesMade(null); return response; } catch (error) { setToast({