@rpg-engine/long-bow 0.7.92 → 0.7.93

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.
@@ -28839,6 +28839,12 @@ var CraftBook = function CraftBook(_ref) {
28839
28839
  var _useState7 = React.useState(1),
28840
28840
  currentPage = _useState7[0],
28841
28841
  setCurrentPage = _useState7[1];
28842
+ var _useState8 = React.useState(craftablesItems),
28843
+ items = _useState8[0],
28844
+ setItems = _useState8[1];
28845
+ React.useEffect(function () {
28846
+ setItems(craftablesItems);
28847
+ }, [craftablesItems]);
28842
28848
  React.useEffect(function () {
28843
28849
  var handleResize = function handleResize() {
28844
28850
  if (window.innerWidth < 500 && (size == null ? void 0 : size.width) !== mobilePortrait.width && (!scale || scale < 1)) {
@@ -28877,9 +28883,9 @@ var CraftBook = function CraftBook(_ref) {
28877
28883
  option: type
28878
28884
  };
28879
28885
  });
28880
- var filteredCraftableItems = craftablesItems == null ? void 0 : craftablesItems.filter(function (item) {
28886
+ var filteredCraftableItems = items == null ? void 0 : items.filter(function (item) {
28881
28887
  var matchesSearch = item.name.toLowerCase().includes(searchTerm.toLowerCase());
28882
- var matchesCategory = selectedType === 'Suggested' || selectedType === 'Pinned' && pinnedItems.includes(item.key) || item.type === selectedType;
28888
+ var matchesCategory = selectedType === 'Suggested' || selectedType === 'Pinned' && pinnedItems.includes(item.key) || item.subType === selectedType;
28883
28889
  return matchesSearch && matchesCategory;
28884
28890
  });
28885
28891
  var sortedItems = [].concat(filteredCraftableItems || []).sort(function (a, b) {