ywana-core8 0.0.750 → 0.0.751

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.
@@ -6342,12 +6342,12 @@ var CollectionTree = function CollectionTree(props) {
6342
6342
  var CollectionEditor$1 = function CollectionEditor(props) {
6343
6343
  var save = function save() {
6344
6344
  try {
6345
- var _temp3 = function _temp3() {
6345
+ var _temp5 = function _temp5() {
6346
6346
  if (onChange) onChange(form);
6347
6347
  setPageContext(Object.assign({}, pageContext));
6348
6348
  };
6349
6349
 
6350
- var _temp4 = function () {
6350
+ var _temp6 = function () {
6351
6351
  if (patch) {
6352
6352
  return Promise.resolve(pageContext.patch(form.id, form)).then(function () {});
6353
6353
  } else {
@@ -6355,7 +6355,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
6355
6355
  }
6356
6356
  }();
6357
6357
 
6358
- return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
6358
+ return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
6359
6359
  } catch (e) {
6360
6360
  return Promise.reject(e);
6361
6361
  }
@@ -6365,7 +6365,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
6365
6365
  try {
6366
6366
  var accept = site.confirm("¿ Esta seguro ?");
6367
6367
 
6368
- var _temp6 = function () {
6368
+ var _temp2 = function () {
6369
6369
  if (accept === true) {
6370
6370
  return Promise.resolve(pageContext.remove(selected.id)).then(function () {
6371
6371
  pageContext.clear();
@@ -6374,12 +6374,14 @@ var CollectionEditor$1 = function CollectionEditor(props) {
6374
6374
  }
6375
6375
  }();
6376
6376
 
6377
- return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
6377
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
6378
6378
  } catch (e) {
6379
6379
  return Promise.reject(e);
6380
6380
  }
6381
6381
  };
6382
6382
 
6383
+ var site = useContext(SiteContext);
6384
+
6383
6385
  var _useContext5 = useContext(PageContext),
6384
6386
  pageContext = _useContext5[0],
6385
6387
  setPageContext = _useContext5[1];