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) => { {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>
); );
} }