johannesjo / super-productivity

Super Productivity is an advanced todo list app with integrated Timeboxing and time tracking capabilities. It also comes with integrations for Jira, Gitlab, GitHub and Open Project.
http://super-productivity.com
MIT License
8.65k stars 753 forks source link

TypeError: Cannot read properties of undefined (reading 'color') #3208

Open APsAntonioli opened 3 weeks ago

APsAntonioli commented 3 weeks ago

Steps to Reproduce

  1. Open the "Worklog"
  2. Expand a day with some task

Error Log (Desktop only)

Console Output

Meta Info

META: SP8.0.7 Electron – it – Win32 – Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/8.0.7 Chrome/122.0.6261.156 Electron/29.2.0 Safari/537.36

Stacktrace

i0 (webpack:///src/app/features/worklog/worklog.component.html:134:34)
setSelectedIndex (webpack:///node_modules/@angular/core/fesm2015/core.mjs:12112:8)
setBindingIndex (webpack:///node_modules/@angular/core/fesm2015/core.mjs:11975:12)
viewAttachedToChangeDetector (webpack:///node_modules/@angular/core/fesm2015/core.mjs:13025:16)
executeCheckHooks (webpack:///node_modules/@angular/core/fesm2015/core.mjs:11999:29)
viewAttachedToChangeDetector (webpack:///node_modules/@angular/core/fesm2015/core.mjs:13025:16)
executeCheckHooks (webpack:///node_modules/@angular/core/fesm2015/core.mjs:11999:29)
viewAttachedToChangeDetector (webpack:///node_modules/@angular/core/fesm2015/core.mjs:13025:16)
executeCheckHooks (webpack:///node_modules/@angular/core/fesm2015/core.mjs:11999:29)
viewAttachedToChangeDetector (webpack:///node_modules/@angular/core/fesm2015/core.mjs:13025:16)

Actions Before Error

1717432546870: [Persistence] Save to DB (2) 
1717432547865: [Task] Add time spent 
1717432547866: [Tag] Update Work End for Tag 
1717432547869: [Persistence] Save to DB (2) 
1717432548864: [Task] Add time spent 
1717432548866: [Tag] Update Work End for Tag 
1717432548867: [Persistence] Save to DB (2) 
1717432549400: [Layout] Hide SideBar 
1717432549871: [Task] Add time spent 
1717432549872: [Tag] Update Work End for Tag 
1717432549874: [Persistence] Save to DB (2) 
1717432550865: [Task] Add time spent 
1717432550867: [Tag] Update Work End for Tag 
1717432550868: [Persistence] Save to DB (2) 
1717432551026: [Pomodoro] Stop Pomodoro 
1717432551027: [Task] UnsetCurrentTask 
1717432551029: [Pomodoro] Pause Pomodoro 
1717432556824: [Task] Update Task 
1717432557072: [Persistence] Save to DB 
1717432560045: [Task] SetSelectedTask 
1717432560052: [Layout] Hide Notes 
1717432563438: [Task] Move to archive 
1717432563441: [Persistence] Save to DB (2) 
1717432563442: [Task] UnsetCurrentTask 
1717432563442: [Pomodoro] Pause Pomodoro 
1717432563499: [Persistence] Save to DB 
1717486530111: [FocusMode] Set focus session elapsed time 
1717486530406: [SP_ALL] Load(import) all data 
1717486530410: [Idle] Reset 
1717486530411: [SP_ALL] All Data was loaded
github-actions[bot] commented 3 weeks ago

Thank you very much for opening up this issue! I am currently a bit overwhelmed by the many requests that arrive each week, so please forgive me, if I fail to respond personally. I am still very likely to at least skim read your request and I'll probably try to fix all (real) bugs if possible and I will likely review every single PR being made (please, give me a heads up if you intent to do so) and I will try to work on popular requests (please upvote via thumbs up on the original issue) whenever possible, but trying to respond to every single issue over the last years has been kind of draining and I need to adjust my approach for this project to remain fun for me and to make any progress with actually coding new stuff. Thanks for your understanding!

github-actions[bot] commented 3 weeks ago

Hello there APsAntonioli! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

For more open ended discussions and/or specific questions, please visit the discussions page. 💖

APsAntonioli commented 3 weeks ago

I have this problem only in the "Today" worklog. The worklogs of my personal projects work good.

albertopesquerabrooktec commented 3 weeks ago

Same here. It crashes when you open a day in worklog view and there is at least one task without project. If all tasks have project it works fine.

AndrewCarvalho commented 3 weeks ago

It looks like some recent change now breaks tasks in worklogs that aren't associated with projects due to not having a colour for the dot that appears.

I have had a repeating, non-project task for the past few years which now makes all my old worklogs unviewable.

This is happening in 8.0.5.0 downloaded from the Microsoft Store

kvieto commented 3 weeks ago

the same since yesterday app update. today->worklog->day report button click -- causes app error state.

johannesjo commented 1 week ago

I think I was able to fix this. Hope to make a bug fix release tomorrow or on Monday! Sorry for the inconvenience!