fix(ui): handle Table Row without href prop correctly

Fixed the Table Row component to properly handle cases where no href
is provided. This prevents unnecessary RouterProvider wrapping and
fixes the cursor incorrectly appearing as a pointer when the row is
not actually a link.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
Johan Persson
2025-11-21 15:26:39 +01:00
parent 2b3fb40d06
commit b3ad928bb8
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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.
@@ -51,7 +51,7 @@ export function Row<T extends object>(props: RowProps<T>) {
</>
);
if (isExternal) {
if (!href || isExternal) {
return (
<ReactAriaRow
id={id}