Commit 1504ede
authored
fix(tasks): use uuid instead of id for dialog open condition (#272)
Taskwarrior assigns id=0 to all completed and deleted tasks since they
are removed from the active task list. Using task.id for the dialog's
open condition caused multiple dialogs to open simultaneously when
clicking on any non-pending task, resulting in flickering and blackout.
Replaced _selectedTask?.id === task.id with
_selectedTask?.uuid === task.uuid since uuid is unique for every
task regardless of status.
Fixes: #2711 parent 0ffd79e commit 1504ede
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
1001 | | - | |
| 1001 | + | |
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
| |||
0 commit comments