fix: existing issues modal for cycle and module (#2664)
* fix: existing issues modal for cycle and module * refactor: existing issues modal code * fix: build errors
This commit is contained in:
parent
1ed72c51df
commit
742143766f
10 changed files with 173 additions and 171 deletions
|
|
@ -40,7 +40,7 @@ export interface IModuleIssueStore {
|
|||
payload: IBlockUpdateData
|
||||
) => void;
|
||||
deleteIssue: (group_id: string | null, sub_group_id: string | null, issue: IIssue) => void;
|
||||
addIssueToModule: (workspaceSlug: string, projectId: string, moduleId: string, issueId: string) => Promise<any>;
|
||||
addIssueToModule: (workspaceSlug: string, projectId: string, moduleId: string, issueIds: string[]) => Promise<void>;
|
||||
removeIssueFromModule: (workspaceSlug: string, projectId: string, moduleId: string, bridgeId: string) => Promise<any>;
|
||||
}
|
||||
|
||||
|
|
@ -337,7 +337,7 @@ export class ModuleIssueStore implements IModuleIssueStore {
|
|||
}
|
||||
};
|
||||
|
||||
addIssueToModule = async (workspaceSlug: string, projectId: string, moduleId: string, issueId: string) => {
|
||||
addIssueToModule = async (workspaceSlug: string, projectId: string, moduleId: string, issueIds: string[]) => {
|
||||
try {
|
||||
const user = this.rootStore.user.currentUser ?? undefined;
|
||||
|
||||
|
|
@ -346,7 +346,7 @@ export class ModuleIssueStore implements IModuleIssueStore {
|
|||
projectId,
|
||||
moduleId,
|
||||
{
|
||||
issues: [issueId],
|
||||
issues: issueIds,
|
||||
},
|
||||
user
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue