fix: use React.Fragment for rendering items in Grid component

This commit is contained in:
Zeke Zhang 2025-07-01 06:48:16 +08:00
parent c2d77907ae
commit df7434c970

View File

@ -47,7 +47,7 @@ export function Grid(props: {
<Col key={cellIdx} span={spans[cellIdx]}>
<div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>
{cell.map((uid) => (
<div key={uid}>{renderItem(uid)}</div>
<React.Fragment key={uid}>{renderItem(uid)}</React.Fragment>
))}
</div>
</Col>