mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
fix: use React.Fragment for rendering items in Grid component
This commit is contained in:
parent
c2d77907ae
commit
df7434c970
@ -47,7 +47,7 @@ export function Grid(props: {
|
|||||||
<Col key={cellIdx} span={spans[cellIdx]}>
|
<Col key={cellIdx} span={spans[cellIdx]}>
|
||||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>
|
<div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>
|
||||||
{cell.map((uid) => (
|
{cell.map((uid) => (
|
||||||
<div key={uid}>{renderItem(uid)}</div>
|
<React.Fragment key={uid}>{renderItem(uid)}</React.Fragment>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user