Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit d00dce7

Browse files
committed
fix: Table containing old incorrect data
1 parent edd22c3 commit d00dce7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/admin-ui/src/component/Table.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ type Props = TableProps & {
5656
// TODO overlay and spinner for loading would be preferable over colour switching
5757
export const CustomTable = ({ isLoading, ...props }: Props): JSX.Element => (
5858
<StyledTable
59+
// NOTE have to unmount on data changes because there is a bug in the Table component
60+
// removing this and using sort leaves ghost elements in the table.
61+
key={JSON.stringify(props.rows)}
5962
$headingBackground={
6063
isLoading ? "var(--color-black-20)" : "var(--color-black-10)"
6164
}

0 commit comments

Comments
 (0)