fix the issue of logs preview and count mismatch in pipelines by updating sample logs query param from limit to pageSize (#7231)

This commit is contained in:
Shaheer Kochai 2025-03-06 19:25:23 +04:30 committed by GitHub
parent d09b85bea8
commit 29fa5c3cf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]);