catalog: fix incorrect defaultTarget in createComponentRouteRef

The previous value doesn't exist in the
scaffolder. I believe the logical place for this
to point to is the root of the scaffolder plugin,
which renders the list of templates.

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
MT Lewis
2025-08-21 16:22:44 +01:00
parent b1bd24a0b2
commit 85c5e045c9
3 changed files with 6 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog': patch
---
Fix incorrect defaultTarget on `createComponentRouteRef`.
-1
View File
@@ -4,7 +4,6 @@ app:
routes:
bindings:
catalog.viewTechDoc: techdocs.docRoot
catalog.createComponent: catalog-import.importPage
org.catalogIndex: catalog.catalogIndex
pluginOverrides:
+1 -1
View File
@@ -22,7 +22,7 @@ import {
export const createComponentRouteRef = createExternalRouteRef({
id: 'create-component',
optional: true,
defaultTarget: 'scaffolder.createComponent',
defaultTarget: 'scaffolder.root',
});
export const viewTechDocRouteRef = createExternalRouteRef({