Fix dynamically changing columns crashing the table component

Signed-off-by: Gustaf Räntilä <g.rantila@gmail.com>
This commit is contained in:
Gustaf Räntilä
2026-02-04 22:42:15 +01:00
committed by Johan Persson
parent 191ff20e1e
commit a0fe1b2dd6
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/ui': patch
---
Fixed changing columns after first render from crashing. It now renders the table with the new column layout as columns change.
Affected components: Table
@@ -176,6 +176,7 @@ export function Table<T extends TableItem>({
</TableHeader>
<TableBody
items={data}
dependencies={[visibleColumns]}
renderEmptyState={
emptyState ? () => <Flex p="3">{emptyState}</Flex> : undefined
}