File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
search/items/search-filters Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ] } ` ,
You can’t perform that action at this time.
0 commit comments