bug with created terminal data not going to edit page
This commit is contained in:
parent
dd467e8ef8
commit
abdc79688a
|
@ -209,8 +209,7 @@ export default {
|
||||||
})
|
})
|
||||||
|
|
||||||
// Redirect to the edit page when we create a new one
|
// Redirect to the edit page when we create a new one
|
||||||
if (!this.isEdit) { this.$router.push(`/terminals/edit/${r.data.id}`) }
|
if (!this.isEdit) { this.$router.push(`/terminals/edit/${r.data.createdTerminal._id}`) }
|
||||||
|
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
console.dir(e)
|
console.dir(e)
|
||||||
|
|
Loading…
Reference in New Issue