fix: issues resolved in sub issues (#2238)

This commit is contained in:
guru_sainath 2023-09-21 19:12:20 +05:30 committed by GitHub
parent 978909c021
commit 73afb8f4d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 264 additions and 189 deletions

View file

@ -86,12 +86,14 @@ export const IssueProperty: React.FC<IIssueProperty> = ({
};
const handleAssigneeChange = (data: any) => {
const newData = issue.assignees ?? [];
let newData = issue.assignees ?? [];
if (newData.includes(data)) newData.splice(newData.indexOf(data), 1);
else newData.push(data);
if (newData && newData.length > 0) {
if (newData.includes(data)) newData = newData.splice(newData.indexOf(data), 1);
else newData = [...newData, data];
} else newData = [...newData, data];
partialUpdateIssue({ assignees_list: data });
partialUpdateIssue({ assignees_list: data, assignees: data });
trackEventServices.trackIssuePartialPropertyUpdateEvent(
{