Skip to content

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

fix: use resourceId as selector key (#4990)

Liu Ji1cb03841b9e2
diff --git a/frontend/src/views/SheetDashboard.vue b/frontend/src/views/SheetDashboard.vue
index 71cad4d251..07dc42f32d 100644
--- a/frontend/src/views/SheetDashboard.vue
+++ b/frontend/src/views/SheetDashboard.vue
@@ -198,7 +198,7 @@ const shownSheetList = computed(() => {
if (
projectSelectorValue.value !== "" &&
- projectSelectorValue.value !== sheet.project.name
+ projectSelectorValue.value !== sheet.project.resourceId
) {
t = false;
}
@@ -222,7 +222,7 @@ const projectList = computed(() => {
const selectedProject = computed(() => {
for (const project of projectList.value) {
- if (project.name === projectSelectorValue.value) {
+ if (project.resourceId === projectSelectorValue.value) {
return project;
}
}
@@ -240,7 +240,7 @@ const projectSelectOptions = computed(() => {
projectList.value.map((project) => {
return {
label: project.name,
- value: project.name,
+ value: project.resourceId,
};
})
);