fix: remove stray .profile. dereference causing TypeError on SSE sync
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
This commit is contained in:
parent
076211720f
commit
1201e3f169
@ -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": {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user