Skip to content

Commit 27b750a

Browse files
github-actions[bot]Adam Tackett
and
Adam Tackett
committed
Traces - Custom Traces mode pagination reset (#2437)
Signed-off-by: Adam Tackett <[email protected]> Co-authored-by: Adam Tackett <[email protected]> (cherry picked from commit 0d7ac8d) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 11a04c6 commit 27b750a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

public/components/trace_analytics/components/traces/traces_content.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,6 @@ export function TracesContent(props: TracesProps) {
217217
refreshTracesTableData(sort, pageIndex, pageSize);
218218
}, [maxTraces]);
219219

220-
useEffect(() => {
221-
setPageIndex(0);
222-
}, [tracesTableMode]);
223-
224220
useEffect(() => {
225221
if (mode !== 'custom_data_prepper') {
226222
setMaxTraces(500);
@@ -473,6 +469,7 @@ export function TracesContent(props: TracesProps) {
473469
setTracesTableMode={(tableMode) => {
474470
setTracesTableMode(tableMode);
475471
setSortingColumns([]);
472+
setPageIndex(0);
476473
}}
477474
sorting={sortingColumns}
478475
pagination={pagination}

0 commit comments

Comments
 (0)