fixed a bug where admin create a fuel then, edit page not showing correct details of fuel

This commit is contained in:
Chad Derya 2019-09-09 15:04:48 +01:00
parent 7fa961b5b8
commit c7d3ce9a99
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ export default {
})
// 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
}).catch((e) => {