[WEB-818] fix: sub-issue and attachment delete not working in the peek overview (#4042)

* fix: delete attachment not working in the peek overview

* fix: sub-issue delete not working

* fix: lint errors
This commit is contained in:
Aaryan Khandelwal 2024-03-22 18:37:11 +05:30 committed by GitHub
parent 5aed04eb41
commit 1caceca1e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 38 additions and 41 deletions

View file

@ -158,7 +158,7 @@ export const IssueListItem: React.FC<ISubIssues> = observer((props) => {
<CustomMenu.MenuItem
onClick={() => {
handleIssueCrudState("delete", parentIssueId, issue);
toggleDeleteIssueModal(true);
toggleDeleteIssueModal(issue.id);
}}
>
<div className="flex items-center gap-2">

View file

@ -523,7 +523,7 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
isOpen={issueCrudState?.delete?.toggle}
handleClose={() => {
handleIssueCrudState("delete", null, null);
toggleDeleteIssueModal(false);
toggleDeleteIssueModal(null);
}}
data={issueCrudState?.delete?.issue as TIssue}
onSubmit={async () =>