[WEB-5080] fix: attachment and link count in spreadsheet columns #7942

This commit is contained in:
Vamsi Krishna
2025-10-13 21:03:54 +05:30
committed by GitHub
parent 87eb1949c6
commit ffe38b592a
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ export const SpreadsheetAttachmentColumn: React.FC<Props> = observer((props) =>
return (
<Row className="flex h-11 w-full items-center border-b-[0.5px] border-custom-border-200 py-1 text-xs hover:bg-custom-background-80 group-[.selected-issue-row]:bg-custom-primary-100/5 group-[.selected-issue-row]:hover:bg-custom-primary-100/10">
{issue?.attachment_count} {issue?.attachment_count === 1 ? "attachment" : "attachments"}
{issue?.attachment_count ?? 0} {issue?.attachment_count === 1 ? "attachment" : "attachments"}
</Row>
);
});

View File

@@ -13,7 +13,7 @@ export const SpreadsheetLinkColumn: React.FC<Props> = observer((props: Props) =>
return (
<Row className="flex h-11 w-full items-center border-b-[0.5px] border-custom-border-200 px-2.5 py-1 text-xs hover:bg-custom-background-80 group-[.selected-issue-row]:bg-custom-primary-100/5 group-[.selected-issue-row]:hover:bg-custom-primary-100/10 px-page-x">
{issue?.link_count} {issue?.link_count === 1 ? "link" : "links"}
{issue?.link_count ?? 0} {issue?.link_count === 1 ? "link" : "links"}
</Row>
);
});