From aade1a72b72c2d6e7541cc2c3d45aa10da64d884 Mon Sep 17 00:00:00 2001 From: dakshesh14 Date: Tue, 7 Nov 2023 14:09:11 +0530 Subject: [PATCH] fix: draft issue not mutating after confirmation --- web/components/issues/modal.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/components/issues/modal.tsx b/web/components/issues/modal.tsx index ccbf2595f..0f272f305 100644 --- a/web/components/issues/modal.tsx +++ b/web/components/issues/modal.tsx @@ -216,9 +216,8 @@ export const CreateUpdateIssueModal: React.FC = observer((prop await draftIssuesStore .createDraftIssue(workspaceSlug.toString(), activeProject, payload) - .then((response) => { - // TODO: replace with actual group id and sub group id - draftIssuesStore.updateIssueStructure(null, null, response); + .then(() => { + draftIssuesStore.fetchIssues(workspaceSlug.toString(), activeProject); setToastAlert({ type: "success",