From fdc477b395ac023c0dbe9ed0fd748b2b0fb52abe Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Tue, 14 Apr 2026 15:55:38 -0700 Subject: [PATCH] fix(kiwi-fe): MealPlanView strict TS split index type narrowing --- frontend/src/components/MealPlanView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/MealPlanView.vue b/frontend/src/components/MealPlanView.vue index 7f6264e..70fbe46 100644 --- a/frontend/src/components/MealPlanView.vue +++ b/frontend/src/components/MealPlanView.vue @@ -102,7 +102,7 @@ async function onNewPlan() { // Compute Monday of current week (getDay: 0=Sun, 1=Mon...) const monday = new Date(today) monday.setDate(today.getDate() - ((day + 6) % 7)) - const weekStart = monday.toISOString().split('T')[0] + const weekStart = monday.toISOString().split('T')[0] ?? monday.toISOString().slice(0, 10) await store.createPlan(weekStart, ['dinner']) }