Fix dynamically changing columns crashing the table component
Signed-off-by: Gustaf Räntilä <g.rantila@gmail.com>
This commit is contained in:
committed by
Johan Persson
parent
191ff20e1e
commit
a0fe1b2dd6
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user