Check for errors before maping them
This commit is contained in:
parent
0d7e4e83d1
commit
af389b145d
|
@ -164,7 +164,7 @@ export default {
|
|||
this.basicUser = response.data.basicUser
|
||||
this.step = 2
|
||||
} catch (e) {
|
||||
this.errors = e.graphQLErrors.map(e => e.message)
|
||||
this.errors = e.graphQLErrors?.map(e => e.message)
|
||||
} finally {
|
||||
this.loading = false
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ export default {
|
|||
const next = this.$route.params.next
|
||||
await this.$router.push(next ? next : '/')
|
||||
} catch (e) {
|
||||
this.errors = e.graphQLErrors.map(e => e.message)
|
||||
this.errors = e.graphQLErrors?.map(e => e.message)
|
||||
} finally {
|
||||
this.loading = false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user