ywana-core8 0.0.975 → 0.0.976

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
@@ -2676,7 +2676,12 @@
2676
2676
  var tks = Array.isArray(tokens) ? tokens : [];
2677
2677
  var sortedOptions = options ? options.sort(function (a, b) {
2678
2678
  if (!a.label || !b.label) return 0;
2679
- a.label.localeCompare(b.label);
2679
+ try {
2680
+ a.label.localeCompare(b.label);
2681
+ } catch (error) {
2682
+ console.log('Error sorting options', error);
2683
+ return 0;
2684
+ }
2680
2685
  }) : null;
2681
2686
  return /*#__PURE__*/React__default["default"].createElement("div", {
2682
2687
  className: "tokenField"