Merge pull request #25926 from OrkoHunter/orkohunter/scaffolder-run-title-undefined

scaffolder: remove undefined from the title of Scaffolder Run page
This commit is contained in:
Ben Lambert
2024-08-07 08:38:00 +02:00
committed by GitHub
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>