Skip to content

Commit

Permalink
UI: ignore error host is already in the database when create a zone (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache committed Jun 26, 2024
1 parent ae4b6d3 commit 1218392
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/src/views/infra/zone/ZoneWizardLaunchZone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,11 @@ export default {
resolve()
}).catch(error => {
message = error.response.headers['x-description']
reject(message)
if (message.includes('is already in the database')) {
resolve()
} else {
reject(message)
}
})
})
},
Expand Down

0 comments on commit 1218392

Please sign in to comment.