super-productivity icon indicating copy to clipboard operation
super-productivity copied to clipboard

Move subtask to another parent task - app crashes

Open halloichbingunnar opened this issue 5 months ago • 4 comments

Steps to Reproduce

I moved a subtask to another parent task. It got displayed twice there (had this already many times). When I moved it to sort the subtasks differently within the parent task, the app crashed:

Error Log (Desktop only)

TypeError: Cannot read properties of undefined (reading 'id')

Console Output

Meta Info

META: SP10.0.4 Electron – de – Win32 – Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/10.0.4 Chrome/126.0.6478.185 Electron/31.3.1 Safari/537.36

Stacktrace

id (file:///C:/Users/Gunnar/AppData/Local/Programs/superProductivity/resources/app.asar/dist/browser/src/app/features/tasks/task-list/task-list.component.ts:84:68)
map (file:///C:/Users/Gunnar/AppData/Local/Programs/superProductivity/resources/app.asar/dist/browser/src/app/features/tasks/task-list/task-list.component.ts:84:43)
__tryOrUnsub (file:///C:/Users/Gunnar/AppData/Local/Programs/superProductivity/resources/app.asar/dist/browser/node_modules/rxjs/_esm2015/internal/Subscriber.js:186:9)
next (file:///C:/Users/Gunnar/AppData/Local/Programs/superProductivity/resources/app.asar/dist/browser/node_modules/rxjs/_esm2015/internal/Subscriber.js:126:13)
_next (file:///C:/Users/Gunnar/AppData/Local/Programs/superProductivity/resources/app.asar/dist/browser/node_modules/rxjs/_esm2015/internal/Subscriber.js:73:21)
next (file:///C:/Users/Gunnar/AppData/Local/Programs/superProductivity/resources/app.asar/dist/browser/node_modules/rxjs/_esm2015/internal/Subscriber.js:50:11)
this.project.call (file:///C:/Users/Gunnar/AppData/Local/Programs/superProductivity/resources/app.asar/dist/browser/node_modules/rxjs/_esm2015/internal/operators/map.js:34:21)
next (file:///C:/Users/Gunnar/AppData/Local/Programs/superProductivity/resources/app.asar/dist/browser/node_modules/rxjs/_esm2015/internal/Subscriber.js:50:11)
this.destination.error (file:///C:/Users/Gunnar/AppData/Local/Programs/superProductivity/resources/app.asar/dist/browser/node_modules/rxjs/_esm2015/internal/operators/filter.js:32:23)

Actions Before Error

1725953415606: [FocusMode] Focus session done 
1725953416029: [FocusMode] Set focus session elapsed time 
1725953416030: [Task] Update Task 
1725953416034: [Persistence] Save to DB 
1725953416034: [Task] UnsetCurrentTask 
1725953418314: [FocusMode] Cancel Focus Session 
1725953418315: [FocusMode] Set focus session elapsed time (2) 
1725953418315: [Task] UnsetCurrentTask 
1725953596747: [Idle] Reset (29) 
1725953605314: [Task] Update Task 
1725953605318: [Persistence] Save to DB 
1725953605629: [Task] Add SubTask 
1725953605633: [Persistence] Save to DB 
1725953614821: [Task] Update Task 
1725953614822: [Persistence] Save to DB 
1725953615422: [Task] Add SubTask 
1725953615425: [Persistence] Save to DB 
1725953624280: [Task] Update Task 
1725953624281: [Persistence] Save to DB 
1725953632962: [Task] Update Task 
1725953632963: [Persistence] Save to DB 
1725953634394: [Task] Delete Task 
1725953634401: [Persistence] Save to DB (2) 
1725953634401: [Task] UnsetCurrentTask 
1725953635649: [Task] Add SubTask 
1725953635652: [Persistence] Save to DB 
1725953638420: [Task] Update Task 
1725953638421: [Persistence] Save to DB 
1725953639498: [Task] Move sub task 
1725953639501: [Persistence] Save to DB

halloichbingunnar avatar Sep 10 '24 07:09 halloichbingunnar