Skip to content

Commit

Permalink
fix: add null check to to traceData
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadshaheer authored and YounixM committed Jan 30, 2025
1 parent e50b3d0 commit b389d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/TraceDetailV2/TraceDetailV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ function TraceDetailsV2(): JSX.Element {
() =>
!isFetchingTraceData &&
!errorFetchingTraceData &&
defaultTo(traceData?.payload?.spans.length, 0) === 0,
defaultTo(traceData?.payload?.spans?.length, 0) === 0,
[
errorFetchingTraceData,
isFetchingTraceData,
traceData?.payload?.spans.length,
traceData?.payload?.spans?.length,
],
);

Expand Down

0 comments on commit b389d37

Please sign in to comment.