[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:
parent
2d6c26a5d6
commit
cc7b34e399
2 changed files with 1 additions and 3 deletions
|
|
@ -522,6 +522,7 @@ class IssueAttachmentLiteSerializer(DynamicBaseSerializer):
|
|||
"asset",
|
||||
"attributes",
|
||||
# "issue_id",
|
||||
"created_by",
|
||||
"updated_at",
|
||||
"updated_by",
|
||||
"asset_url",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue