diff --git a/config-ui/src/routes/connection/connection.tsx b/config-ui/src/routes/connection/connection.tsx index 21306151938..3652c26b3d9 100644 --- a/config-ui/src/routes/connection/connection.tsx +++ b/config-ui/src/routes/connection/connection.tsx @@ -182,7 +182,7 @@ export const Connection = () => { ); if (res.status === 'success') { - if (dataSource.length === 1) { + if (dataSource.length === 1 && page > 1) { setPage(page - 1); } else { setVersion((v) => v + 1);