diff --git a/frontend/src/components/Endpoint/TraceList.tsx b/frontend/src/components/Endpoint/TraceList.tsx index ae836080..19a2036c 100644 --- a/frontend/src/components/Endpoint/TraceList.tsx +++ b/frontend/src/components/Endpoint/TraceList.tsx @@ -64,7 +64,7 @@ const TraceList: React.FC = React.memo( ) useEffect(() => { - traces.forEach(currTrace => { + traces?.forEach(currTrace => { if (currTrace.uuid === uuid) { setTrace(currTrace) } @@ -154,16 +154,36 @@ const TraceList: React.FC = React.memo( name: "Path", sortable: true, selector: (row: ApiTrace) => `${row.method}-${row.path}`, - cell: (row: ApiTrace) => ( - - {row.path} - - ), + cell: (row: ApiTrace) => + topEndpointsView ? ( + + + {row.host} + + + + {row.method} + + {row.path} + + + ) : ( + + {row.path} + + ), grow: 3, id: "path", },