@rpg-engine/long-bow 0.7.95 → 0.7.96
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/long-bow.cjs.development.js +1 -1
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +1 -1
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CraftBook/CraftBook.tsx +3 -2
|
@@ -28897,7 +28897,7 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
28897
28897
|
});
|
|
28898
28898
|
var filteredCraftableItems = items == null ? void 0 : items.filter(function (item) {
|
|
28899
28899
|
var matchesSearch = item.name.toLowerCase().includes(searchTerm.toLowerCase());
|
|
28900
|
-
var matchesCategory = selectedType === 'Suggested' || selectedType === 'Pinned'
|
|
28900
|
+
var matchesCategory = selectedType === 'Suggested' || (selectedType === 'Pinned' ? pinnedItems.includes(item.key) : item.subType === selectedType);
|
|
28901
28901
|
return matchesSearch && matchesCategory;
|
|
28902
28902
|
});
|
|
28903
28903
|
var sortedItems = [].concat(filteredCraftableItems || []).sort(function (a, b) {
|