aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-09-27 23:21:31 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-09-27 23:21:31 +0530
commite4dbf70d561aa3ed79379ffdb98661cb3f215fe9 (patch)
treec11a45544c5c39c5d7236019c89a76c1ca850ae0 /src/components
parent39819430fa47172c1a3a36218339f6baf86f8983 (diff)
Bug Fix: undefined sent as ID when updating a brand/item
Diffstat (limited to 'src/components')
-rw-r--r--src/components/editors/brand-editor.js1
-rw-r--r--src/components/editors/item-editor.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/components/editors/brand-editor.js b/src/components/editors/brand-editor.js
index 26f4cca..64950ec 100644
--- a/src/components/editors/brand-editor.js
+++ b/src/components/editors/brand-editor.js
@@ -27,6 +27,7 @@ const BrandEditor = (props) => {
e.preventDefault();
const brand = new Brand();
+ brand.Id = props.brand.Id;
brand.Name = name;
props.editing
diff --git a/src/components/editors/item-editor.js b/src/components/editors/item-editor.js
index e2d9d94..94c6137 100644
--- a/src/components/editors/item-editor.js
+++ b/src/components/editors/item-editor.js
@@ -44,6 +44,7 @@ const ItemEditor = (props) => {
e.preventDefault();
const item = new Item();
+ item.Id = props.item.Id;
item.Name = name;
item.Description = desc;
item.HSN = HSN;