leclercb / taskunifier-app

TaskUnifier - Task Management Application
https://www.taskunifier.app
Other
27 stars 7 forks source link

Invalid state after removing a task #209

Closed Harmon758 closed 4 years ago

Harmon758 commented 4 years ago

Description After removing a task, the task view doesn't change. Attempting to modify any part of the task in the task view (e.g. the Text) errors: image Attempting to edit a task (without one selected now, since the previously selected one was removed) shows a blank Task Edition Manager: image and then also errors: image

Reproduction Steps

  1. Remove a task (e.g. using the Remove Task(s) button)
  2. Enter text (e.g. "test") into the Text tab of the task view split pane
  3. Click off the task view split pane
  4. Error (shown in above screenshot) pops up:
    Update "" of type "tasks"
    Error: The object cannot be updated as it is not in a valid state
  5. Close error
  6. Click on Edit Task button (Ctrl+Shift+E or Tasks -> Edit Task(s) also apply)
  7. Close blank Task Edition Manager (shown in above screenshot)
  8. Error (shown in above screenshot) pops up:
    Update "undefined" of type "tasks"
    Error: The object doesn't have an ID

Expected Behavior After a task is removed, the task view split pane should update to show "Please select one task" like it does on startup or after unselecting a task. Additionally, the Edit Task button should also update and be greyed out/unclickable, and Ctrl+Shift+E and Tasks -> Edit Task(s) should pop up with a "Please select one or more tasks (maximum 50)" error message, again like it does in other situations where no task is selected.

Version & System Information App Version: 1.2.1 (8f21147) on Microsoft Windows [Version 10.0.18363.1082]

leclercb commented 4 years ago

Thanks ! Will be fixed in 1.2.2