ywana-core8 0.0.971 → 0.0.972

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/dist/index.umd.js CHANGED
@@ -2532,11 +2532,11 @@
2532
2532
  var locale = window.navigator.userLanguage || window.navigator.language;
2533
2533
  switch (format) {
2534
2534
  case FORMATS$1.TOKENS:
2535
- text = value.map(function (token) {
2535
+ text = value && Array.isArray(value) ? value.map(function (token) {
2536
2536
  return /*#__PURE__*/React__default["default"].createElement("span", {
2537
2537
  className: "token"
2538
2538
  }, token);
2539
- }).join(", ");
2539
+ }).join(", ") : value;
2540
2540
  break;
2541
2541
  case FORMATS$1.COLOR:
2542
2542
  text = /*#__PURE__*/React__default["default"].createElement("input", {