Preparing search index...

    Function collectUniqueItems

    • Collects unique ingredients and tags from multiple recipes

      Deduplicates items by normalized name to create a consolidated set of items that need validation against the database.

      Parameters

      Returns {
          uniqueIngredients: Map<string, Partial<ingredientTableElement>>;
          uniqueTags: Map<string, TagDraft>;
      }

      Maps of unique ingredients and tags keyed by normalized name