Skip to content

Commit

Permalink
fix: property access on undefined exit span (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
johann-crabnebula authored Jan 18, 2024
1 parent c67889e commit 048985c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/web/src/lib/span/normalize-spans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function computeSlices(span: Span) {
const allEnters = span.enters.reduce((acc, e) => acc + e.timestamp, 0);

return span.enters.map((entered, i) => {
const exited = span.exits[i].timestamp;
const exited = span.exits[i]?.timestamp;

const width = scaleToMax(
[exited - entered.timestamp],
Expand Down

0 comments on commit 048985c

Please sign in to comment.