diff --git a/.changeset/famous-jars-lose.md b/.changeset/famous-jars-lose.md new file mode 100644 index 0000000000..444b78630a --- /dev/null +++ b/.changeset/famous-jars-lose.md @@ -0,0 +1,5 @@ +--- +'@backstage/ui': patch +--- + +Fixed Table Row component to correctly handle cases where no href is provided, preventing unnecessary router provider wrapping and fixing the cursor incorrectly showing as a pointer despite the element not being a link. diff --git a/packages/ui/src/components/Table/components/Row.tsx b/packages/ui/src/components/Table/components/Row.tsx index 106f97baff..0b09c157ab 100644 --- a/packages/ui/src/components/Table/components/Row.tsx +++ b/packages/ui/src/components/Table/components/Row.tsx @@ -51,7 +51,7 @@ export function Row(props: RowProps) { ); - if (isExternal) { + if (!href || isExternal) { return (