When filtering by diets in the menu screen, items without dietary data are appearing which could lead to inaccurate results being shown. We don't want to show meat dishes as vegetarian when they aren't explicitly marked as (v) or (vg).
Following the pattern we have for checking whether specials are enabled, this adds a check to see if dietary filtering is enabled. When grouping items to render, if we are filtering diets, we can exclude items that do not state their dietary data. This should be okay performance-wise.
Bonus performance addition: this also opts FancyMenu's section list into largeListProps. Local testing shows this resolves the larger list struggling to keep up while scrolling (the one without specials enabled).
When filtering by diets in the menu screen, items without dietary data are appearing which could lead to inaccurate results being shown. We don't want to show meat dishes as vegetarian when they aren't explicitly marked as (v) or (vg).
Following the pattern we have for checking whether specials are enabled, this adds a check to see if dietary filtering is enabled. When grouping items to render, if we are filtering diets, we can exclude items that do not state their dietary data. This should be okay performance-wise.
Bonus performance addition: this also opts FancyMenu's section list into
largeListProps
. Local testing shows this resolves the larger list struggling to keep up while scrolling (the one without specials enabled).