ywana-core8 0.0.539 → 0.0.540

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.
@@ -2057,8 +2057,18 @@ var TokenField = function TokenField(_ref) {
2057
2057
  return /*#__PURE__*/React.createElement("div", {
2058
2058
  className: "tokenField"
2059
2059
  }, /*#__PURE__*/React.createElement("label", null, label), tks.map(function (text, index) {
2060
+ var text2 = text;
2061
+
2062
+ if (options) {
2063
+ var lbl = options.find(function (opt) {
2064
+ return opt.value == text;
2065
+ });
2066
+ if (lbl) text2 = lbl.label;
2067
+ console.log(text, lbl, text2, options);
2068
+ }
2069
+
2060
2070
  return /*#__PURE__*/React.createElement(Token, {
2061
- text: text,
2071
+ text: text2,
2062
2072
  onDelete: function onDelete() {
2063
2073
  return remove(index);
2064
2074
  }