@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.js CHANGED
@@ -516,6 +516,9 @@ createBuiltInType("time", {
516
516
  });
517
517
  createBuiltInType("timeRange", {
518
518
  transform: function (value) {
519
+ // Return undefined instead of a null populated object
520
+ if (!value)
521
+ return undefined;
519
522
  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];
520
523
  var fromDate = new Date(from);
521
524
  var toDate = new Date(to);