Skip to content

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

Don’t trigger the patchTask when updating the staus field when creating the field

Tianzhou Chen5d52714c9ae6
diff --git a/frontend/src/views/TaskDetail.vue b/frontend/src/views/TaskDetail.vue
index fdb146635a..f4e1cd2b07 100644
--- a/frontend/src/views/TaskDetail.vue
+++ b/frontend/src/views/TaskDetail.vue
@@ -365,9 +365,12 @@ export default {
};
const updateAssigneeId = (newAssigneeId: PrincipalId) => {
- patchTask({
- assigneeId: newAssigneeId,
- });
+ (state.task as TaskNew).assigneeId = newAssigneeId;
+ if (!state.new) {
+ patchTask({
+ assigneeId: newAssigneeId,
+ });
+ }
};
const updateCustomField = (field: TaskField, value: string) => {