Skip to content

Commit 376f781

Browse files
fix: attachment item avatar (#6650)
1 parent 827f478 commit 376f781

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/types/src/issues/issue_attachment.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export type TIssueAttachment = {
1111
// required
1212
updated_at: string;
1313
updated_by: string;
14+
created_by: string;
1415
};
1516

1617
export type TIssueAttachmentUploadResponse = TFileSignedURLResponse & {

web/core/components/issues/attachment/attachment-list-item.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ export const IssueAttachmentsListItem: FC<TIssueAttachmentsListItem> = observer(
7171
<Tooltip
7272
isMobile={isMobile}
7373
tooltipContent={`${
74-
getUserDetails(attachment.updated_by)?.display_name ?? ""
74+
getUserDetails(attachment?.created_by)?.display_name ?? ""
7575
} uploaded on ${renderFormattedDate(attachment.updated_at)}`}
7676
>
7777
<div className="flex items-center justify-center">
78-
<ButtonAvatars showTooltip userIds={attachment?.updated_by} />
78+
<ButtonAvatars showTooltip userIds={attachment?.created_by} />
7979
</div>
8080
</Tooltip>
8181
</>

0 commit comments

Comments
 (0)