Skip to content

Commit

Permalink
fix: error page set when deleting data scope (#7619) (#7620)
Browse files Browse the repository at this point in the history
Co-authored-by: 青湛 <[email protected]>
  • Loading branch information
github-actions[bot] and mintsweet authored Jun 14, 2024
1 parent e8b8ff9 commit 2b8aaa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config-ui/src/routes/connection/connection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2b8aaa3

Please sign in to comment.