Merge pull request #3126 from vividh/fix/techdocs-page-title

This commit is contained in:
Himanshu Mishra
2020-10-28 15:03:37 +01:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs': patch
---
While techdocs fetches site name and metadata for the component, the page title was displayed as '[object Object] | Backstage'. This has now been fixed to display the component ID if site name is not present or being fetched.
@@ -84,6 +84,7 @@ export const TechDocsPageHeader = ({
return (
<Header
title={siteName ? siteName : <CircularProgress />}
pageTitleOverride={siteName || name}
subtitle={
siteDescription && siteDescription !== 'None' ? siteDescription : ''
}