diff --git a/web/store/issue/module/issue.store.ts b/web/store/issue/module/issue.store.ts index 19e469ea4..b83519cd2 100644 --- a/web/store/issue/module/issue.store.ts +++ b/web/store/issue/module/issue.store.ts @@ -368,7 +368,7 @@ export class ModuleIssues extends IssueHelperStore implements IModuleIssues { runInAction(() => { moduleIds.forEach((moduleId) => { update(this.issues, moduleId, (moduleIssueIds = []) => { - if (moduleIssueIds.includes(issueId)) return moduleIssueIds; + if (moduleIssueIds.includes(issueId)) return pull(moduleIssueIds, issueId); else return uniq(concat(moduleIssueIds, [issueId])); }); update(this.rootStore.issues.issuesMap, [issueId, "module_ids"], (issueModuleIds = []) =>