From e4dbf70d561aa3ed79379ffdb98661cb3f215fe9 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 27 Sep 2022 23:21:31 +0530 Subject: Bug Fix: undefined sent as ID when updating a brand/item --- src/classes/brand.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/classes/brand.js') diff --git a/src/classes/brand.js b/src/classes/brand.js index f396c6f..472798c 100644 --- a/src/classes/brand.js +++ b/src/classes/brand.js @@ -44,7 +44,7 @@ export const getAllBrands = (ok, fail) => { } export const editBrand = (brand, ok, fail) => { - axios.put(`/brand/${brand.id}`, brand) + axios.put(`/brand/${brand.Id}`, brand) .then(res => ok()) .catch(err => fail()) } -- cgit v1.2.3