fixed a bug where admin create a fuel then, edit page not showing correct details of fuel
This commit is contained in:
parent
7fa961b5b8
commit
c7d3ce9a99
|
@ -226,7 +226,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(`/products/edit/${r.data.id}`) }
|
if (!this.isEdit) { this.$router.push(`/products/edit/${r.data.createdFuel._id}`) }
|
||||||
|
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
|
|
Loading…
Reference in New Issue