ywana-core8 0.0.538 → 0.0.541

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.
@@ -1088,7 +1088,6 @@ var ContentType = /*#__PURE__*/function () {
1088
1088
  break;
1089
1089
 
1090
1090
  case TYPES.ENTITY:
1091
- if (optional === true) console.log('OPTIONAL', field, !entryData);
1092
1091
  if (optional === true && !entryData) break;
1093
1092
  var child1 = new ContentType(item);
1094
1093
  next[name] = child1.value(entryData);
@@ -2057,8 +2056,17 @@ var TokenField = function TokenField(_ref) {
2057
2056
  return /*#__PURE__*/React.createElement("div", {
2058
2057
  className: "tokenField"
2059
2058
  }, /*#__PURE__*/React.createElement("label", null, label), tks.map(function (text, index) {
2059
+ var text2 = text;
2060
+
2061
+ if (options) {
2062
+ var lbl = options.find(function (opt) {
2063
+ return opt.value == text;
2064
+ });
2065
+ if (lbl) text2 = lbl.label;
2066
+ }
2067
+
2060
2068
  return /*#__PURE__*/React.createElement(Token, {
2061
- text: text,
2069
+ text: text2,
2062
2070
  onDelete: function onDelete() {
2063
2071
  return remove(index);
2064
2072
  }
@@ -5432,7 +5440,6 @@ var CollectionTree = function CollectionTree(props) {
5432
5440
  var CollectionEditor = function CollectionEditor(props) {
5433
5441
  var save = function save() {
5434
5442
  try {
5435
- console.log('saving.....');
5436
5443
  return Promise.resolve(pageContext.update(form)).then(function () {
5437
5444
  setPageContext(Object.assign({}, pageContext));
5438
5445
  });
@@ -5613,7 +5620,7 @@ var CollectionContext = function CollectionContext(url, field, host, page, fetch
5613
5620
  return Promise.resolve(_this6.load()).then(function () {});
5614
5621
  });
5615
5622
  }, function (error) {
5616
- console.log("CREATE ERROR", error);
5623
+ console.log(error);
5617
5624
  });
5618
5625
 
5619
5626
  return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);