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/components/editors/brand-editor.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/components/editors/brand-editor.js') 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 -- cgit v1.2.3