From 29fa5c3cf005e5bab2663d48bf7b031240a62dae Mon Sep 17 00:00:00 2001 From: Shaheer Kochai Date: Thu, 6 Mar 2025 19:25:23 +0430 Subject: [PATCH] fix the issue of logs preview and count mismatch in pipelines by updating sample logs query param from limit to pageSize (#7231) --- .../PipelineListsView/Preview/hooks/useSampleLogs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/container/PipelinePage/PipelineListsView/Preview/hooks/useSampleLogs.ts b/frontend/src/container/PipelinePage/PipelineListsView/Preview/hooks/useSampleLogs.ts index 457e3bd976..c888fe0517 100644 --- a/frontend/src/container/PipelinePage/PipelineListsView/Preview/hooks/useSampleLogs.ts +++ b/frontend/src/container/PipelinePage/PipelineListsView/Preview/hooks/useSampleLogs.ts @@ -38,7 +38,7 @@ const useSampleLogs = ({ filters: filter || initialFilters, aggregateOperator: LogsAggregatorOperator.NOOP, orderBy: [{ columnName: 'timestamp', order: 'desc' }], - limit: count || DEFAULT_SAMPLE_LOGS_COUNT, + pageSize: count || DEFAULT_SAMPLE_LOGS_COUNT, }; return q; }, [count, filter]);