@mercoa/react 0.0.10-rc2 → 0.0.10-rc3

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.
package/dist/index.es.js CHANGED
@@ -72489,8 +72489,8 @@ function LineItemRow({
72489
72489
  shouldTouch: !0
72490
72490
  });
72491
72491
  else {
72492
- const yr = JSON.parse(JSON.stringify(mr ?? "{}"));
72493
- yr[hr.key] = `${pr}`, or(`lineItems.${re}.metadata`, yr, {
72492
+ let yr = {};
72493
+ mr && (yr = JSON.parse(typeof mr == "string" ? mr ?? "{}" : JSON.stringify(mr))), yr[hr.key] = `${pr}`, or(`lineItems.${re}.metadata`, yr, {
72494
72494
  shouldDirty: !0,
72495
72495
  shouldTouch: !0
72496
72496
  });