fixed a bug where admin create a fuel then, edit page not showing correct details of fuel
This commit is contained in:
@@ -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) => {
|
||||||
|
Reference in New Issue
Block a user