diff --git a/.changeset/stale-tools-yawn.md b/.changeset/stale-tools-yawn.md index b053d83acd..ca933d70f4 100644 --- a/.changeset/stale-tools-yawn.md +++ b/.changeset/stale-tools-yawn.md @@ -2,5 +2,4 @@ '@backstage/plugin-org': patch --- -Add entity type to the Ownership Cards. -Fix the query params for the links of the Ownership Cards so that the catalog page actually selects the right entity kind. +Add entity kind to the Ownership Cards. Fix the query params for the links of the Ownership Cards so that the catalog page actually selects the right entity kind. diff --git a/plugins/org/src/components/Cards/OwnershipCard/ComponentsGrid.tsx b/plugins/org/src/components/Cards/OwnershipCard/ComponentsGrid.tsx index c1522c1fd1..ba037f791c 100644 --- a/plugins/org/src/components/Cards/OwnershipCard/ComponentsGrid.tsx +++ b/plugins/org/src/components/Cards/OwnershipCard/ComponentsGrid.tsx @@ -82,7 +82,7 @@ const EntityCountTile = ({ {pluralize(name, counter)} - {kind != type && {kind}} + {kind !== type && {kind}} ); diff --git a/plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts b/plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts index 77d5164830..3756e6827e 100644 --- a/plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts +++ b/plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts @@ -49,7 +49,7 @@ const getQueryParams = ( humanizeEntityRef(parseEntityRef(owner), { defaultKind: 'group' }), ); const filters = { - kind: kind.toLowerCase(), + kind: kind.toLocaleLowerCase('en-US'), type, owners, user: 'all',