Skip to content

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

chore: don't use auto-reset (#9701)

Liu Ji909456b20bb2
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Assignee/Assignee.vue b/frontend/src/components/IssueV1/components/HeaderSection/Assignee/Assignee.vue
index f07674b5ed..205daf5941 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/Assignee/Assignee.vue
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Assignee/Assignee.vue
@@ -30,6 +30,7 @@
:map-options="mapUserOptions"
:fallback-option="fallbackUser"
:clearable="true"
+ :auto-reset="false"
style="width: 14rem"
@update:user="changeAssigneeUID"
/>
diff --git a/frontend/src/components/v2/Select/UserSelect.vue b/frontend/src/components/v2/Select/UserSelect.vue
index 9d95711a6f..e59fe031bd 100644
--- a/frontend/src/components/v2/Select/UserSelect.vue
+++ b/frontend/src/components/v2/Select/UserSelect.vue
@@ -221,8 +221,16 @@ const combinedUserList = computed(() => {
const handleValueUpdated = (value: string | string[]) => {
showStatus.value = false;
if (props.multiple) {
+ if (!value) {
+ // normalize value
+ value = [];
+ }
emit("update:users", value as string[]);
} else {
+ if (value === null) {
+ // normalize value
+ value = "";
+ }
emit("update:user", value as string);
}
};