diff --git a/.changeset/ninety-lemons-shake.md b/.changeset/ninety-lemons-shake.md new file mode 100644 index 0000000000..960a4eaffe --- /dev/null +++ b/.changeset/ninety-lemons-shake.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-react': patch +--- + +Limit the props that are forwarded to the `Link` component in the `EntityRefLink`. diff --git a/plugins/catalog-react/src/components/EntityRefLink/EntityRefLink.tsx b/plugins/catalog-react/src/components/EntityRefLink/EntityRefLink.tsx index 8aa890086e..50a80af12a 100644 --- a/plugins/catalog-react/src/components/EntityRefLink/EntityRefLink.tsx +++ b/plugins/catalog-react/src/components/EntityRefLink/EntityRefLink.tsx @@ -32,7 +32,7 @@ type EntityRefLinkProps = { export const EntityRefLink = React.forwardRef( (props, ref) => { - const { entityRef, defaultKind, children } = props; + const { entityRef, defaultKind, children, ...linkProps } = props; let kind; let namespace; @@ -61,7 +61,7 @@ export const EntityRefLink = React.forwardRef( {children} {!children && formatEntityRefTitle(entityRef, { defaultKind })}