fix(dashboard): filter todayMeals by visible_meal_types preference (#14)
The dashboard meal widget was showing all meal types regardless of the household meal visibility settings configured in Settings > Meal Plan. Root cause: the todayMeals SQL query in dashboard.js did not read visible_meal_types from sync_config. The Meals page applied this filter client-side, but the dashboard API returned unfiltered data. Fix: read visible_meal_types from sync_config before the query and inject the active types as IN (?) placeholders. Falls back to all four types when no preference is stored.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "oikos",
|
||||
"version": "0.11.0",
|
||||
"version": "0.11.1",
|
||||
"description": "Self-hosted family planner - calendar, tasks, shopping, meal planning, budget and more. Private, open-source, no subscription.",
|
||||
"main": "server/index.js",
|
||||
"type": "module",
|
||||
|
||||
Reference in New Issue
Block a user