message: Fix Triage tab's Similar Items search for slug shotguns highlighting all Kinetic weapons instead of only Shotguns.
diff: @@ -96,11 +96,20 @@ export const itemCategoryFilter: FilterDefinition = {
  return (item) => item.itemCategoryHashes.includes(categoryHash);
  },
  fromItem: (item) => {
  - const mostSpecificTypeHash = item.itemCategoryHashes[item.itemCategoryHashes.length - 1];
  + /*
  + The last ICH will be the most specific, so start there and try find a corresponding search
  + filter. If we can't find one (e.g. for slug shotguns), try the next most specific ICH and so on.
  + */
  + for (let i = item.itemCategoryHashes.length - 1; i >= 0; i--) {
  + const itemCategoryHash = item.itemCategoryHashes[i];
  const typeTag = Object.entries(itemCategoryHashesByName).find(
  - ([_tag, ich]) => ich === mostSpecificTypeHash
  + ([_tag, ich]) => ich === itemCategoryHash
  )?.[0];
  - return typeTag ? `is:${typeTag}` : '';
  + if (typeTag) {
  + return `is:${typeTag}`;
  + }
  + }
  + return '';
  },
  };
  