Skip to content

Commit 786972f

Browse files
committed
fix it in the factory
1 parent b29e8cd commit 786972f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/app/inventory/store/d2-item-factory.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,10 @@ export function makeItem(
348348
itemDef.traitHashes?.includes(TraitHashes.ItemEngram) ||
349349
false;
350350

351+
if (isEngram && normalBucket.hash !== BucketHashes.Engrams) {
352+
normalBucket = buckets.byHash[BucketHashes.Engrams];
353+
}
354+
351355
// https://github.com/Bungie-net/api/issues/134, class items had a primary stat
352356

353357
let primaryStat: DimItem['primaryStat'] = null;

src/app/search/items/search-filters/known-values.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,6 @@ export const itemTypeFilter = {
198198
break;
199199
}
200200
}
201-
if (filterValue === 'engrams') {
202-
return (item) => item.isEngram;
203-
}
204201
return (item) => item.bucket.hash === bucketHash;
205202
},
206203
fromItem: (item) => `is:${bucketToType[item.bucket.hash as BucketHashes]}`,

0 commit comments

Comments
 (0)