[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",
|
"asset",
|
||||||
"attributes",
|
"attributes",
|
||||||
# "issue_id",
|
# "issue_id",
|
||||||
|
"created_by",
|
||||||
"updated_at",
|
"updated_at",
|
||||||
"updated_by",
|
"updated_by",
|
||||||
"asset_url",
|
"asset_url",
|
||||||
|
|
|
||||||
|
|
@ -161,9 +161,6 @@ export class IssueAttachmentStore implements IIssueAttachmentStore {
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
update(this.attachments, [issueId], (attachmentIds = []) => uniq(concat(attachmentIds, [response.id])));
|
update(this.attachments, [issueId], (attachmentIds = []) => uniq(concat(attachmentIds, [response.id])));
|
||||||
set(this.attachmentMap, response.id, response);
|
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