[WEB-3439] fix: work item attachment mutation (#6655)

* chore: created by field added to attachment response

* fix: work item attachment mutation
This commit is contained in:
Anmol Singh Bhatia 2025-02-21 00:10:16 +05:30 committed by GitHub
parent 2d6c26a5d6
commit cc7b34e399
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View file

@ -522,6 +522,7 @@ class IssueAttachmentLiteSerializer(DynamicBaseSerializer):
"asset",
"attributes",
# "issue_id",
"created_by",
"updated_at",
"updated_by",
"asset_url",

View file

@ -161,9 +161,6 @@ export class IssueAttachmentStore implements IIssueAttachmentStore {
runInAction(() => {
update(this.attachments, [issueId], (attachmentIds = []) => uniq(concat(attachmentIds, [response.id])));
set(this.attachmentMap, response.id, response);
this.rootIssueStore.issues.updateIssue(issueId, {
attachment_count: issueAttachmentsCount + 1, // increment attachment count
});
});
}