Skip to content

Commit

Permalink
Prevent collision of logs in log entries table
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffon committed Aug 20, 2017
1 parent 2226744 commit f555e8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/TracePage/TraceTimelineViewer/SpanDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ function Logs({ logs, traceStartTime, open, onToggleOpen }) {
</a>
{open &&
<div>
{_.sortBy(logs, 'timestamp').map(log =>
{_.sortBy(logs, 'timestamp').map((log, i) =>
// `i` is necessary in the key because timestamps can repeat
<ExpandableDataTableStatefull
key={log.timestamp}
key={`${log.timestamp}-${i}`}
data={log.fields || []}
label={`${formatDuration(log.timestamp - traceStartTime)}`}
/>
Expand Down

0 comments on commit f555e8b

Please sign in to comment.