chore: disccard changes made after creating issue (#4484)
This commit is contained in:
parent
8522db630e
commit
8fae076fd6
1 changed files with 3 additions and 5 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue