From 1201e3f169f22c7ac1fd9531d960a10bfe09515a Mon Sep 17 00:00:00 2001 From: mARTin Date: Thu, 2 Apr 2026 10:35:42 +0200 Subject: [PATCH] fix: remove stray .profile. dereference causing TypeError on SSE sync MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Line 2243 read data.user.profile.viewStyle — data.user.profile is undefined (the shape is data.user.viewStyle), causing: TypeError: Cannot read properties of undefined (reading 'viewStyle') This crash fired every time the SSE sync callback received new data. v1.81.10 --- package.json | 2 +- src/components/WeeklyView.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 163a25e..b802227 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.81.9", + "version": "1.81.10", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "main": "index.js", "scripts": { diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index f5025c4..edb76b0 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -2240,7 +2240,7 @@ export default function WeeklyView() { setStartHour(data.user.startHour); if (data.user.endHour !== undefined) setEndHour(data.user.endHour); - if (data.user.profile.viewStyle !== undefined) { + if (data.user.viewStyle !== undefined) { setViewStyle(data.user.viewStyle as ViewStyle); setShowTimeGrid(data.user.showTimeGrid ?? true); }