Use index as a key for the table header group in PgReactTableStyled component. #7419

This commit is contained in:
Ashesh Vashi 2024-05-15 17:06:45 +05:30 committed by GitHub
parent 5edeee8017
commit b9088b0afa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -224,8 +224,8 @@ PgReactTableRowExpandContent.propTypes = {
export function PgReactTableHeader({table}) {
return (
<div className='pgrt-header'>
{table.getHeaderGroups().map((headerGroup) => (
<div key={''} className='pgrt-header-row' style={{ }}>
{table.getHeaderGroups().map((headerGroup, idx) => (
<div key={idx} className='pgrt-header-row' style={{ }}>
{headerGroup.headers.map((header) => (
<div
key={header.id}