We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edd22c3 commit d00dce7Copy full SHA for d00dce7
1 file changed
apps/admin-ui/src/component/Table.tsx
@@ -56,6 +56,9 @@ type Props = TableProps & {
56
// TODO overlay and spinner for loading would be preferable over colour switching
57
export const CustomTable = ({ isLoading, ...props }: Props): JSX.Element => (
58
<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)}
62
$headingBackground={
63
isLoading ? "var(--color-black-20)" : "var(--color-black-10)"
64
}
0 commit comments