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,
});
!createMore && handleClose();
if (createMore) {
issueTitleRef && issueTitleRef?.current?.focus();
setDescription("<p></p>");
setChangesMade(null);
}
if (createMore) issueTitleRef && issueTitleRef?.current?.focus();
setDescription("<p></p>");
setChangesMade(null);
return response;
} catch (error) {
setToast({