diff --git a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx index e59b753363..e58b2d407b 100644 --- a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx +++ b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx @@ -19,6 +19,7 @@ import { ContentHeader, identityApiRef, SupportButton, + configApiRef, useApi, } from '@backstage/core'; import { rootRoute as scaffolderRootRoute } from '@backstage/plugin-scaffolder'; @@ -51,6 +52,8 @@ const CatalogPageContents = () => { const userId = useApi(identityApiRef).getUserId(); const [selectedTab, setSelectedTab] = useState(); const [selectedSidebarItem, setSelectedSidebarItem] = useState(); + const orgName = + useApi(configApiRef).getOptionalString('organization.name') ?? 'Company'; const tabs = useMemo( () => [ @@ -98,7 +101,7 @@ const CatalogPageContents = () => { ], }, { - name: 'Company', // TODO: Replace with Company name, read from app config. + name: orgName, items: [ { id: 'all', @@ -108,7 +111,7 @@ const CatalogPageContents = () => { ], }, ], - [isStarredEntity, userId], + [isStarredEntity, userId, orgName], ); return (