mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: removing issues from the module when removing module_id from issue peekoverview
This commit is contained in:
parent
e65db66836
commit
01832683fb
@ -368,7 +368,7 @@ export class ModuleIssues extends IssueHelperStore implements IModuleIssues {
|
|||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
moduleIds.forEach((moduleId) => {
|
moduleIds.forEach((moduleId) => {
|
||||||
update(this.issues, moduleId, (moduleIssueIds = []) => {
|
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]));
|
else return uniq(concat(moduleIssueIds, [issueId]));
|
||||||
});
|
});
|
||||||
update(this.rootStore.issues.issuesMap, [issueId, "module_ids"], (issueModuleIds = []) =>
|
update(this.rootStore.issues.issuesMap, [issueId, "module_ids"], (issueModuleIds = []) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user