scaffolder: remove undefined from the title of Scaffolder Run page

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
Himanshu Mishra
2024-08-07 11:24:46 +05:30
parent 8543e723a5
commit d18f4eba43
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder': patch
---
Fix undefined in the title of Scaffolder Runs on the page load
@@ -173,7 +173,9 @@ export const OngoingTask = (props: {
return (
<Page themeId="website">
<Header
pageTitleOverride={`Run of ${templateName}`}
pageTitleOverride={
templateName ? `Run of ${templateName}` : `Scaffolder Run`
}
title={
<div>
Run of <code>{templateName}</code>