diff --git a/agenta-web/src/components/ServerTable/index.tsx b/agenta-web/src/components/ServerTable/index.tsx index 8e34cbf27c..b7a926121b 100644 --- a/agenta-web/src/components/ServerTable/index.tsx +++ b/agenta-web/src/components/ServerTable/index.tsx @@ -50,7 +50,6 @@ interface Props { headersSelection?: boolean colsDraggable?: boolean colsResizable?: boolean - pagination?: boolean columns: DataCol[] headerExtra?: ReactNode defaultTableParams?: Partial @@ -58,7 +57,7 @@ interface Props { } const ServerTable = ( - props: Omit>, "pagination" | "columns"> & Props, + props: Omit>, "columns"> & Props, ) => { const classes = useStyles() const [columns, setColumns] = useState[]>((props.columns || []) as DataCol[]) @@ -166,6 +165,7 @@ const ServerTable = ( loading={loading} pagination={ !!props.pagination && { + ...props.pagination, pageSize: tableParams?.pagination?.pageSize || 20, current: tableParams?.pagination?.page || 1, total: total.current,