mirror of
https://github.com/makeplane/plane.git
synced 2025-12-23 23:29:37 +01:00
fix: sub-issue properties not rendering and other sub-issue bugs (#3020)
* fix: sub-issue properties not rendering * fix: delete sub-issue * fix: delete issue modal on command k and the issue details page
This commit is contained in:
committed by
sriram veeraghanta
parent
68dcfcd451
commit
c455f03ced
@@ -34,6 +34,7 @@ export const CommandPalette: FC = observer(() => {
|
||||
theme: { toggleSidebar },
|
||||
user: { currentUser },
|
||||
trackEvent: { setTrackElement },
|
||||
projectIssues: { removeIssue },
|
||||
} = useMobxStore();
|
||||
const {
|
||||
toggleCommandPaletteModal,
|
||||
@@ -218,11 +219,15 @@ export const CommandPalette: FC = observer(() => {
|
||||
currentStore={createIssueStoreType}
|
||||
/>
|
||||
|
||||
{issueId && issueDetails && (
|
||||
{workspaceSlug && projectId && issueId && issueDetails && (
|
||||
<DeleteIssueModal
|
||||
handleClose={() => toggleDeleteIssueModal(false)}
|
||||
isOpen={isDeleteIssueModalOpen}
|
||||
data={issueDetails}
|
||||
onSubmit={async () => {
|
||||
await removeIssue(workspaceSlug.toString(), projectId.toString(), issueId.toString());
|
||||
router.push(`/${workspaceSlug}/projects/${projectId}/issues`);
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user