@embeddable.com/sdk-react 3.1.5 → 3.1.6

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/lib/index.esm.js CHANGED
@@ -491,6 +491,9 @@ createBuiltInType("time", {
491
491
  });
492
492
  createBuiltInType("timeRange", {
493
493
  transform: function (value) {
494
+ // Return undefined instead of a null populated object
495
+ if (!value)
496
+ return undefined;
494
497
  var _a = [value === null || value === void 0 ? void 0 : value.from, value === null || value === void 0 ? void 0 : value.to], from = _a[0], to = _a[1];
495
498
  var fromDate = new Date(from);
496
499
  var toDate = new Date(to);