mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: module select handle logic updated
This commit is contained in:
parent
fcaac7e492
commit
d4c2b4db10
@ -36,8 +36,8 @@ export const IssueModuleSelect: React.FC<TIssueModuleSelect> = observer((props)
|
||||
const handleIssueModuleChange = async (moduleIds: string[]) => {
|
||||
if (!issue || !issue.module_ids) return;
|
||||
setIsUpdating(true);
|
||||
const updatedModuleId = xor(issue.module_ids, moduleIds)[0];
|
||||
if (updatedModuleId !== undefined) {
|
||||
const updatedModuleIds = xor(issue.module_ids, moduleIds);
|
||||
for (const updatedModuleId of updatedModuleIds) {
|
||||
if (issue.module_ids.includes(updatedModuleId)) {
|
||||
await issueOperations.removeModulesFromIssue?.(workspaceSlug, projectId, issueId, [updatedModuleId]);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user