@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.
@@ -28832,6 +28832,12 @@ var CraftBook = function CraftBook(_ref) {
28832
28832
  var _useState7 = useState(1),
28833
28833
  currentPage = _useState7[0],
28834
28834
  setCurrentPage = _useState7[1];
28835
+ var _useState8 = useState(craftablesItems),
28836
+ items = _useState8[0],
28837
+ setItems = _useState8[1];
28838
+ useEffect(function () {
28839
+ setItems(craftablesItems);
28840
+ }, [craftablesItems]);
28835
28841
  useEffect(function () {
28836
28842
  var handleResize = function handleResize() {
28837
28843
  if (window.innerWidth < 500 && (size == null ? void 0 : size.width) !== mobilePortrait.width && (!scale || scale < 1)) {
@@ -28870,9 +28876,9 @@ var CraftBook = function CraftBook(_ref) {
28870
28876
  option: type
28871
28877
  };
28872
28878
  });
28873
- var filteredCraftableItems = craftablesItems == null ? void 0 : craftablesItems.filter(function (item) {
28879
+ var filteredCraftableItems = items == null ? void 0 : items.filter(function (item) {
28874
28880
  var matchesSearch = item.name.toLowerCase().includes(searchTerm.toLowerCase());
28875
- var matchesCategory = selectedType === 'Suggested' || selectedType === 'Pinned' && pinnedItems.includes(item.key) || item.type === selectedType;
28881
+ var matchesCategory = selectedType === 'Suggested' || selectedType === 'Pinned' && pinnedItems.includes(item.key) || item.subType === selectedType;
28876
28882
  return matchesSearch && matchesCategory;
28877
28883
  });
28878
28884
  var sortedItems = [].concat(filteredCraftableItems || []).sort(function (a, b) {