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
@@ -176,6 +176,7 @@ export function Table<T extends TableItem>({
</TableHeader>
<TableBody
items={data}
dependencies={[visibleColumns]}
renderEmptyState={
emptyState ? () => <Flex p="3">{emptyState}</Flex> : undefined
}