Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add closed tasks to the assignee’s closed task list.

Tianzhou Chen1ba44c639b00
diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue
index ee5359e83c..eb426c17ea 100644
--- a/frontend/src/views/Home.vue
+++ b/frontend/src/views/Home.vue
@@ -70,7 +70,7 @@ export default {
state.closeList = [];
for (const task of taskList) {
if (
- task.attributes.assignee.id === currentUser!.id &&
+ task.attributes.assignee?.id === currentUser!.id &&
task.attributes.status === "OPEN"
) {
state.attentionList.push(task);
@@ -80,7 +80,8 @@ export default {
) {
state.subscribeList.push(task);
} else if (
- task.attributes.creator.id === currentUser!.id &&
+ (task.attributes.creator.id === currentUser!.id ||
+ task.attributes.assignee?.id === currentUser!.id) &&
(task.attributes.status === "DONE" ||
task.attributes.status === "CANCELED")
) {