Skip to content

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

fix: user select type change (#12853)

ecmadao7557e132451a
diff --git a/frontend/src/components/SensitiveData/GrantAccessDrawer.vue b/frontend/src/components/SensitiveData/GrantAccessDrawer.vue
index 614d7a6b2f..16bfffffc1 100644
--- a/frontend/src/components/SensitiveData/GrantAccessDrawer.vue
+++ b/frontend/src/components/SensitiveData/GrantAccessDrawer.vue
@@ -57,7 +57,11 @@
<div class="space-y-2">
<div class="w-full">
- <NRadioGroup v-model:value="state.type" class="space-x-2">
+ <NRadioGroup
+ :value="state.type"
+ @update:value="onTypeChange"
+ class="space-x-2"
+ >
<NRadio value="MEMBER">{{ $t("project.members.users") }}</NRadio>
<NRadio value="GROUP">
{{ $t("settings.members.groups.self") }}
@@ -182,6 +186,11 @@ const resetState = () => {
state.type = "MEMBER";
};
+const onTypeChange = (type: "MEMBER" | "GROUP") => {
+ state.memberList = [];
+ state.type = type;
+};
+
const onDismiss = () => {
emit("dismiss");
resetState();