Skip to content

Commit f5ff592

Browse files
author
Adam Tackett
committed
fix bug for pagnation in span list
Signed-off-by: Adam Tackett <[email protected]>
1 parent 8ed7260 commit f5ff592

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

public/components/trace_analytics/components/traces/span_detail_table.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ export function SpanDetailTable(props: SpanDetailTableProps) {
229229
spans = applySorting(spans);
230230
}
231231

232-
setItems(spans);
232+
const start = tableParams.page * tableParams.size;
233+
const end = start + tableParams.size;
234+
const pageSpans = spans.slice(start, end);
235+
236+
setItems(pageSpans);
233237
setTotal(spans.length);
234238
} catch (error) {
235239
console.error('Error parsing payloadData in SpanDetailTable:', error);

0 commit comments

Comments
 (0)