mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-29 16:14:42 +00:00
* feat: add dynamic table based on query * fix: group by repeating * fix: change view when groupBy exist in the list * fix: table scroll * feat: add the pagination and update options menu * feat: trace explorer is updated --------- Co-authored-by: Yevhen Shevchenko <y.shevchenko@seedium.io> Co-authored-by: Nazarenko19 <danil.nazarenko2000@gmail.com> Co-authored-by: Palash Gupta <palashgdev@gmail.com>
13 lines
252 B
TypeScript
13 lines
252 B
TypeScript
import { Pagination } from './types';
|
|
|
|
export const checkIsValidPaginationData = ({
|
|
limit,
|
|
offset,
|
|
}: Pagination): boolean =>
|
|
Boolean(
|
|
limit &&
|
|
(limit === 25 || limit === 50 || limit === 100 || limit === 200) &&
|
|
offset &&
|
|
offset > 0,
|
|
);
|