Skip to content

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

fix: initial selected project state (#6071)

boojack1f9abfb94788
diff --git a/frontend/src/components/Issue/form/GrantRequestExporterForm.vue b/frontend/src/components/Issue/form/GrantRequestExporterForm.vue
index 83ca8cacad..b0fea5d765 100644
--- a/frontend/src/components/Issue/form/GrantRequestExporterForm.vue
+++ b/frontend/src/components/Issue/form/GrantRequestExporterForm.vue
@@ -11,7 +11,7 @@
class="!w-60 shrink-0"
:only-userself="false"
:selected-id="projectId"
- @select-project-id="handleSourceProjectSelect"
+ @select-project-id="handleProjectSelect"
/>
</div>
<div class="w-full flex flex-row justify-start items-start">
@@ -176,12 +176,12 @@ onMounted(() => {
if (create.value) {
const projectId = (issue.value as IssueCreate).projectId;
if (projectId && projectId !== UNKNOWN_ID) {
- state.projectId = projectId;
+ handleProjectSelect(projectId);
}
}
});
-const handleSourceProjectSelect = async (projectId: ProjectId) => {
+const handleProjectSelect = async (projectId: ProjectId) => {
if (!create.value) {
return;
}
diff --git a/frontend/src/components/Issue/form/GrantRequestQuerierForm.vue b/frontend/src/components/Issue/form/GrantRequestQuerierForm.vue
index 69cd35c5fd..9912524978 100644
--- a/frontend/src/components/Issue/form/GrantRequestQuerierForm.vue
+++ b/frontend/src/components/Issue/form/GrantRequestQuerierForm.vue
@@ -11,7 +11,7 @@
class="!w-60 shrink-0"
:only-userself="false"
:selected-id="projectId"
- @select-project-id="handleSourceProjectSelect"
+ @select-project-id="handleProjectSelect"
/>
</div>
<div class="w-full flex flex-row justify-start items-start">
@@ -197,12 +197,12 @@ onMounted(() => {
if (create.value) {
const projectId = (issue.value as IssueCreate).projectId;
if (projectId && projectId !== UNKNOWN_ID) {
- state.projectId = projectId;
+ handleProjectSelect(projectId);
}
}
});
-const handleSourceProjectSelect = async (projectId: ProjectId) => {
+const handleProjectSelect = async (projectId: ProjectId) => {
if (!create.value) {
return;
}