bnstooltips 1.4.11 → 1.5.0

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/build/index.js CHANGED
@@ -5510,12 +5510,15 @@ function ItemTooltip(_a) {
5510
5510
  }
5511
5511
  }, [jobstyleOverride]);
5512
5512
  var item = data;
5513
+ var itemCategory = (_c = (_b = item.categories) === null || _b === void 0 ? void 0 : _b.sort(function (a, b) { return b.index - a.index; })[0].localizedName) !== null && _c !== void 0 ? _c : "";
5514
+ if (itemCategory == "none")
5515
+ itemCategory = "";
5513
5516
  var tooltipBaseProps = {
5514
5517
  title: item.name,
5515
5518
  grade: item.grade,
5516
5519
  id: item.id + "-" + item.level,
5517
5520
  icon: item.icon ? BuildIconPath(item.icon.iconPath) : "",
5518
- subtitle: (_c = (_b = item.categories) === null || _b === void 0 ? void 0 : _b.sort(function (a, b) { return b.index - a.index; })[0].localizedName) !== null && _c !== void 0 ? _c : "",
5521
+ subtitle: itemCategory,
5519
5522
  mainInfos: [],
5520
5523
  subInfoGroups: [],
5521
5524
  fullHeight: fullHeight,