Skip to content

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

fix(frontend): fill the value correctly when switching from "skip" to "require" (#2985)

Liu Ji810d137a1977
diff --git a/frontend/src/components/EnvironmentForm/AssigneeGroupEditor.vue b/frontend/src/components/EnvironmentForm/AssigneeGroupEditor.vue
index fad1ecfb03..ee97d863e0 100644
--- a/frontend/src/components/EnvironmentForm/AssigneeGroupEditor.vue
+++ b/frontend/src/components/EnvironmentForm/AssigneeGroupEditor.vue
@@ -113,6 +113,10 @@ watch(
if (value === "MANUAL_APPROVAL_NEVER") {
// Empty the array since it's meaningless when MANUAL_APPROVAL_NEVER
emit("update", []);
+ } else if (value === "MANUAL_APPROVAL_ALWAYS") {
+ // Sync the local state (DBA_OR_OWNER / PROJECT_OWNER) to the payload
+ // when switching from "skip manual approval" -> "require manual approval"
+ emit("update", getAssigneeGroupListByValue(state.assigneeGroup));
}
},
{ immediate: true }