From c7d3ce9a99d4951f2eae949c3562f624ae54bc99 Mon Sep 17 00:00:00 2001 From: Chad Derya Date: Mon, 9 Sep 2019 15:04:48 +0100 Subject: [PATCH] fixed a bug where admin create a fuel then, edit page not showing correct details of fuel --- src/views/products/components/ProductDetail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/products/components/ProductDetail.vue b/src/views/products/components/ProductDetail.vue index 80788c3a..27c3b829 100644 --- a/src/views/products/components/ProductDetail.vue +++ b/src/views/products/components/ProductDetail.vue @@ -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) => {