fix: not passing grouping in kanban layout

This commit is contained in:
dakshesh14 2023-10-30 15:27:21 +05:30
parent e3947254c8
commit 0c4e197940

View File

@ -65,13 +65,18 @@ export const DraftIssueKanBanLayout: React.FC = observer(() => {
) => {
if (!workspaceSlug) return;
const grouping = {
group_id: group_by,
sub_group_id: sub_group_by,
};
if (action === "update") {
draftIssuesStore.updateIssueStructure(group_by, sub_group_by, issue);
draftIssuesStore.updateDraftIssue(workspaceSlug.toString(), issue.project, issue);
draftIssuesStore.updateDraftIssue(workspaceSlug.toString(), issue.project, grouping, issue);
}
if (action === "delete") draftIssuesStore.deleteDraftIssue(workspaceSlug.toString(), issue.project, issue.id);
if (action === "convertToIssue")
draftIssuesStore.convertDraftIssueToIssue(workspaceSlug.toString(), issue.project, issue.id);
draftIssuesStore.convertDraftIssueToIssue(workspaceSlug.toString(), issue.project, grouping, issue.id);
},
[draftIssuesStore, workspaceSlug]
);