From 5c2e2863f45b3e3238b364197f5bc82d63faab0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Fri, 19 Feb 2021 11:41:23 +0100 Subject: [PATCH] Added the proper type parameters to entityRouteRef --- .changeset/selfish-onions-count.md | 5 +++++ plugins/catalog-react/src/routes.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/selfish-onions-count.md diff --git a/.changeset/selfish-onions-count.md b/.changeset/selfish-onions-count.md new file mode 100644 index 0000000000..ee4ea23ae8 --- /dev/null +++ b/.changeset/selfish-onions-count.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-react': patch +--- + +Added the proper type parameters to entityRouteRef. diff --git a/plugins/catalog-react/src/routes.ts b/plugins/catalog-react/src/routes.ts index 0fced32f59..7470b8030e 100644 --- a/plugins/catalog-react/src/routes.ts +++ b/plugins/catalog-react/src/routes.ts @@ -31,6 +31,7 @@ export const entityRoute = createRouteRef({ icon: NoIcon, path: ':namespace/:kind/:name/*', title: 'Entity', + params: ['namespace', 'kind', 'name'], }); export const entityRouteRef = entityRoute;