chore: disccard changes made after creating issue (#4484)

This commit is contained in:
Aaryan Khandelwal 2024-05-17 11:35:37 +05:30 committed by GitHub
parent 8522db630e
commit 8fae076fd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,11 +170,9 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = observer((prop
path: router.asPath, path: router.asPath,
}); });
!createMore && handleClose(); !createMore && handleClose();
if (createMore) { if (createMore) issueTitleRef && issueTitleRef?.current?.focus();
issueTitleRef && issueTitleRef?.current?.focus(); setDescription("<p></p>");
setDescription("<p></p>"); setChangesMade(null);
setChangesMade(null);
}
return response; return response;
} catch (error) { } catch (error) {
setToast({ setToast({