Use Record type in rows in TableProps

This commit is contained in:
Hongbo Wu
2022-06-02 18:41:54 +08:00
parent 35b4e07d16
commit f5780bd4e6

View File

@ -191,7 +191,7 @@ export function Table(props: TableProps): JSX.Element {
},
}}
>
{props.rows.get(key)?.map((cell, index) => (
{Object.values(props.rows.get(key) || {}).map((cell, index) => (
<HStack
key={index}
css={{