Skip to content

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

Display principal name in the change assignee activity

Tianzhou Chen70f9abd98658
diff --git a/frontend/src/views/TaskActivityPanel.vue b/frontend/src/views/TaskActivityPanel.vue
index 707421d805..951f035598 100644
--- a/frontend/src/views/TaskActivityPanel.vue
+++ b/frontend/src/views/TaskActivityPanel.vue
@@ -475,8 +475,16 @@ export default {
newValue = update.newValue;
} else if (update.fieldId == TaskBuiltinFieldId.ASSIGNEE) {
name = "Assignee";
- oldValue = update.oldValue;
- newValue = update.newValue;
+ if (update.oldValue) {
+ oldValue = store.getters["principal/principalById"](
+ update.oldValue
+ ).name;
+ }
+ if (update.newValue) {
+ newValue = store.getters["principal/principalById"](
+ update.newValue
+ ).name;
+ }
} else if (update.fieldId == TaskBuiltinFieldId.DESCRIPTION) {
name = "Description";
} else {