fix(OwnershipCard): support namespaced owners in links

Signed-off-by: Phil Kuang <pkuang@factset.com>
This commit is contained in:
Phil Kuang
2021-08-26 10:55:34 -04:00
parent 9b5f0dd741
commit ff304cfc3f
2 changed files with 7 additions and 1 deletions
@@ -20,6 +20,7 @@ import {
isOwnerOf,
useEntity,
catalogRouteRef,
formatEntityRefTitle,
} from '@backstage/plugin-catalog-react';
import { BackstageTheme, genPageTheme } from '@backstage/theme';
import {
@@ -117,7 +118,7 @@ const getQueryParams = (
owner: Entity,
selectedEntity: EntityTypeProps,
): string => {
const ownerName = owner.metadata.name;
const ownerName = formatEntityRefTitle(owner, { defaultKind: 'group' });
const { kind, type } = selectedEntity;
const queryParams = qs.stringify({
filters: {