Utilize a unique ID for activity logs to improve rendering perf
This commit is contained in:
parent
e878015109
commit
d6c30092ec
5 changed files with 8 additions and 2 deletions
|
@ -49,7 +49,7 @@ export default () => {
|
|||
) : (
|
||||
<div className={'bg-gray-700'}>
|
||||
{data?.items.map((activity) => (
|
||||
<ActivityLogEntry key={activity.timestamp.toString() + activity.event} activity={activity}>
|
||||
<ActivityLogEntry key={activity.id} activity={activity}>
|
||||
{typeof activity.properties.useragent === 'string' && (
|
||||
<Tooltip content={activity.properties.useragent} placement={'top'}>
|
||||
<span>
|
||||
|
|
|
@ -52,7 +52,7 @@ export default () => {
|
|||
) : (
|
||||
<div className={'bg-gray-700'}>
|
||||
{data?.items.map((activity) => (
|
||||
<ActivityLogEntry key={activity.timestamp.toString() + activity.event} activity={activity}>
|
||||
<ActivityLogEntry key={activity.id} activity={activity}>
|
||||
<span />
|
||||
</ActivityLogEntry>
|
||||
))}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue