This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch release-v1.0
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v1.0 by this push:
new 2b8aaa38b fix: error page set when deleting data scope (#7619) (#7620)
2b8aaa38b is described below
commit 2b8aaa38b483bdc8c1c122cb0e6e0f11a2aadf6f
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jun 14 15:05:59 2024 +1200
fix: error page set when deleting data scope (#7619) (#7620)
Co-authored-by: 青湛 <[email protected]>
---
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);