diff --git a/plugins/techdocs/src/home/components/columns.tsx b/plugins/techdocs/src/home/components/columns.tsx index 80dfd80a35..b7ec8271a4 100644 --- a/plugins/techdocs/src/home/components/columns.tsx +++ b/plugins/techdocs/src/home/components/columns.tsx @@ -17,9 +17,10 @@ import React from 'react'; import { Link, SubvalueCell, TableColumn } from '@backstage/core-components'; import { EntityRefLinks } from '@backstage/plugin-catalog-react'; +import { Entity } from '@backstage/catalog-model'; import { DocsTableRow } from './types'; -function formatTitle(entity): String { +function customTitle(entity: Entity): String { return entity.metadata.title || entity.metadata.name; } @@ -30,7 +31,7 @@ export function createNameColumn(): TableColumn { highlight: true, render: (row: DocsTableRow) => ( {formatTitle(row.entity)}} + value={{customTitle(row.entity)}} subvalue={row.entity.metadata.description} /> ),