Skip to content

Commit

Permalink
UI – Render default empty cell when host has no UUID (#25362)
Browse files Browse the repository at this point in the history
## For #23811 
<img width="868" alt="Screenshot 2025-01-10 at 3 29 28 PM"
src="https://github.com/user-attachments/assets/2f95a2d6-7050-4f64-be73-51b6f4a5d422"
/>

- [x] Changes file added for user-visible changes in `changes/`
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <[email protected]>
  • Loading branch information
jacobshandling and Jacob Shandling authored Jan 11, 2025
1 parent 4ad16cc commit 4346b63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions changes/23811-empty-cell-for-no-uuid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Render the default empty value when a host has no UUID
5 changes: 2 additions & 3 deletions frontend/pages/hosts/ManageHostsPage/HostTableConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,8 @@ const allHostTableHeaders: IHostTableColumnConfig[] = [
),
accessor: "uuid",
id: "uuid",
Cell: (cellProps: IHostTableStringCellProps) => (
<TooltipTruncatedTextCell value={cellProps.cell.value} />
),
Cell: ({ cell: { value } }: IHostTableStringCellProps) =>
value ? <TooltipTruncatedTextCell value={value} /> : <TextCell />,
},
{
title: "Last restarted",
Expand Down

0 comments on commit 4346b63

Please sign in to comment.