Merge pull request #31216 from backstage/bui-fix-headertabs

fix: remove default selection of tab
This commit is contained in:
ssjoblad
2025-09-22 15:16:59 +02:00
committed by GitHub
3 changed files with 12 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/ui': patch
---
remove default selection of tab
@@ -57,14 +57,17 @@ const tabs: HeaderTab[] = [
{
id: 'overview',
label: 'Overview',
href: '/overview',
},
{
id: 'checks',
label: 'Checks',
href: '/checks',
},
{
id: 'tracks',
label: 'Tracks',
href: '/tracks',
},
{
id: 'campaigns',
@@ -82,14 +85,17 @@ const tabs2: HeaderTab[] = [
{
id: 'Banana',
label: 'Banana',
href: '/banana',
},
{
id: 'Apple',
label: 'Apple',
href: '/apple',
},
{
id: 'Orange',
label: 'Orange',
href: '/orange',
},
];
+1 -1
View File
@@ -117,7 +117,7 @@ export const Tabs = (props: TabsProps) => {
}
}
}
return undefined;
return null;
})();
if (!children) return null;