umwd-components 0.1.618 → 0.1.620

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,9 @@ export type Vendor = {
14
14
  data: Product[];
15
15
  };
16
16
  contacts: ContactsProps[];
17
- notes?: Note[];
17
+ notes?: {
18
+ data: Note[];
19
+ };
18
20
  };
19
21
  export type VendorName = {
20
22
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.618",
3
+ "version": "0.1.620",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/src/index.js",
6
6
  "module": "dist/src/index.js",
@@ -56,6 +56,7 @@ export function EditVendorForm({
56
56
  address,
57
57
  products,
58
58
  contacts,
59
+ notes,
59
60
  } = data;
60
61
  console.log("data", data);
61
62
 
@@ -278,8 +279,12 @@ export function EditVendorForm({
278
279
  </IconButton>
279
280
  </Grid>
280
281
  <Grid item xs={12}>
281
- {data.notes ? (
282
- <NotesDisplay notes={data.notes} />
282
+ {/*
283
+ {oldContacts?.map((contact, index) => {
284
+ if (contact.data?.id) {
285
+ */}
286
+ {notes?.data !== undefined ? (
287
+ <NotesDisplay notes={notes.data} />
283
288
  ) : (
284
289
  <Typography>No notes</Typography>
285
290
  )}
@@ -13,7 +13,7 @@ export type Vendor = {
13
13
  address: AddressProps;
14
14
  products: { data: Product[] };
15
15
  contacts: ContactsProps[];
16
- notes?: Note[];
16
+ notes?: { data: Note[] };
17
17
  };
18
18
 
19
19
  export type VendorName = {