@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
package/dist/long-bow.esm.js
CHANGED
|
@@ -28890,7 +28890,7 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
28890
28890
|
});
|
|
28891
28891
|
var filteredCraftableItems = items == null ? void 0 : items.filter(function (item) {
|
|
28892
28892
|
var matchesSearch = item.name.toLowerCase().includes(searchTerm.toLowerCase());
|
|
28893
|
-
var matchesCategory = selectedType === 'Suggested' || selectedType === 'Pinned'
|
|
28893
|
+
var matchesCategory = selectedType === 'Suggested' || (selectedType === 'Pinned' ? pinnedItems.includes(item.key) : item.subType === selectedType);
|
|
28894
28894
|
return matchesSearch && matchesCategory;
|
|
28895
28895
|
});
|
|
28896
28896
|
var sortedItems = [].concat(filteredCraftableItems || []).sort(function (a, b) {
|