fix: add key to Fragment in map for monitor items

This commit is contained in:
tommy 2024-10-29 21:06:58 -04:00 committed by moonrailgun
parent 6312ec6eed
commit 9949b973bd

View File

@ -51,15 +51,14 @@ export const StatusPageBody: React.FC<StatusPageBodyProps> = React.memo(
{group.children.map((item) => {
if (item.type === 'monitor') {
return (
<>
<React.Fragment key={item.key}>
<Separator />
<StatusItemMonitor
key={item.key}
workspaceId={props.workspaceId}
monitorId={item.id}
showCurrent={item.showCurrent ?? false}
/>
</>
</React.Fragment>
);
}