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.basicUser = response.data.basicUser
|
||||||
this.step = 2
|
this.step = 2
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.errors = e.graphQLErrors.map(e => e.message)
|
this.errors = e.graphQLErrors?.map(e => e.message)
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
@ -197,7 +197,7 @@ export default {
|
||||||
const next = this.$route.params.next
|
const next = this.$route.params.next
|
||||||
await this.$router.push(next ? next : '/')
|
await this.$router.push(next ? next : '/')
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.errors = e.graphQLErrors.map(e => e.message)
|
this.errors = e.graphQLErrors?.map(e => e.message)
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user