fix: resetting the changesMage when the createmore toggle is turned on in issue create-edit modal (#4039)

This commit is contained in:
guru_sainath
2024-03-22 18:35:40 +05:30
committed by GitHub
parent db8cf1fb24
commit 72392d5731

View File

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