fix: add key to Fragment in map for monitor items
This commit is contained in:
parent
6312ec6eed
commit
9949b973bd
@ -51,15 +51,14 @@ export const StatusPageBody: React.FC<StatusPageBodyProps> = React.memo(
|
|||||||
{group.children.map((item) => {
|
{group.children.map((item) => {
|
||||||
if (item.type === 'monitor') {
|
if (item.type === 'monitor') {
|
||||||
return (
|
return (
|
||||||
<>
|
<React.Fragment key={item.key}>
|
||||||
<Separator />
|
<Separator />
|
||||||
<StatusItemMonitor
|
<StatusItemMonitor
|
||||||
key={item.key}
|
|
||||||
workspaceId={props.workspaceId}
|
workspaceId={props.workspaceId}
|
||||||
monitorId={item.id}
|
monitorId={item.id}
|
||||||
showCurrent={item.showCurrent ?? false}
|
showCurrent={item.showCurrent ?? false}
|
||||||
/>
|
/>
|
||||||
</>
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user