Skip to content

Commit

Permalink
fix: error page set when deleting data scope
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsweet committed Jun 14, 2024
1 parent 91848cd commit 59b2a68
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 59b2a68

Please sign in to comment.