This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new a164de435 fix: error page set when deleting data scope (#7619)
a164de435 is described below
commit a164de435124a9f6275bbb5066a27825a4837a2b
Author: 青湛 <[email protected]>
AuthorDate: Fri Jun 14 15:05:32 2024 +1200
fix: error page set when deleting data scope (#7619)
---
config-ui/src/routes/connection/connection.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config-ui/src/routes/connection/connection.tsx
b/config-ui/src/routes/connection/connection.tsx
index 213061519..3652c26b3 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);