diff --git a/superset-frontend/plugins/plugin-chart-ag-grid-table/src/controlPanel.tsx b/superset-frontend/plugins/plugin-chart-ag-grid-table/src/controlPanel.tsx index 4c6333f1cd1..731985a6e01 100644 --- a/superset-frontend/plugins/plugin-chart-ag-grid-table/src/controlPanel.tsx +++ b/superset-frontend/plugins/plugin-chart-ag-grid-table/src/controlPanel.tsx @@ -46,7 +46,7 @@ import { isAdhocColumn, isFeatureEnabled, isPhysicalColumn, - legacyValidateInteger, + validateInteger, QueryFormColumn, QueryMode, SMART_DATE_ID, @@ -386,6 +386,7 @@ const config: ControlPanelConfig = { description: t('Rows per page, 0 means no pagination'), visibility: ({ controls }: ControlPanelsContainerProps) => Boolean(controls?.server_pagination?.value), + validators: [validateInteger], }, }, ], @@ -404,7 +405,7 @@ const config: ControlPanelConfig = { state?.common?.conf?.SQL_MAX_ROW, }), validators: [ - legacyValidateInteger, + validateInteger, (v, state) => validateMaxValue( v, diff --git a/superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx b/superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx index 859c74bf4ce..8d4006e2067 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx +++ b/superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx @@ -45,7 +45,7 @@ import { ensureIsArray, isAdhocColumn, isPhysicalColumn, - legacyValidateInteger, + validateInteger, QueryFormColumn, QueryMode, SMART_DATE_ID, @@ -407,6 +407,7 @@ const config: ControlPanelConfig = { description: t('Rows per page, 0 means no pagination'), visibility: ({ controls }: ControlPanelsContainerProps) => Boolean(controls?.server_pagination?.value), + validators: [validateInteger], }, }, ], @@ -425,7 +426,7 @@ const config: ControlPanelConfig = { state?.common?.conf?.SQL_MAX_ROW, }), validators: [ - legacyValidateInteger, + validateInteger, (v, state) => validateMaxValue( v,