diff --git a/frontend/src/container/ListAlertRules/ListAlert.tsx b/frontend/src/container/ListAlertRules/ListAlert.tsx index 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 ( <> @@ -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',