Skip to content

Commit

Permalink
Fix show error response when creating an identity fails
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Sep 19, 2024
1 parent 302352c commit 0444317
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/src/admin/NewIdentity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,13 @@ export default {
return this.confirm()
},
confirm () {
console.log('Creating identity', this.identity);
this.$api.post('api/id', this.identity)
.then(response => {
this.$emit('statusUpdate', 'Identity created')
this.$router.push({ name: 'admin.identities' })
})
.catch(response => {
this.apiError = response.statusText
this.apiError = response
})
}
}
Expand Down

0 comments on commit 0444317

Please sign in to comment.