SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
chore: extract pagination config
ahmadshaheer146b4c8a00455
diff --git a/frontend/src/container/ListAlertRules/ListAlert.tsx b/frontend/src/container/ListAlertRules/ListAlert.tsxindex 70039a5de9..e53a80dfdf 100644--- a/frontend/src/container/ListAlertRules/ListAlert.tsx+++ b/frontend/src/container/ListAlertRules/ListAlert.tsx@@ -356,6 +356,10 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element {});}+ const paginationConfig = {+ defaultCurrent: Number(paginationParam) || 1,+ hideOnSinglePage: true,+ };return (<><SearchContainer>@@ -387,10 +391,7 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element {dataSource={data}dynamicColumns={dynamicColumns}onChange={handleChange}- pagination={{- defaultCurrent: Number(paginationParam) || 1,- hideOnSinglePage: true,- }}+ pagination={paginationConfig}facingIssueBtn={{attributes: {screen: 'Alert list page',