Skip to content

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

fix(frontend): fixed the bug when set the `databaseListProjectId` state (#379)

Yunwei Xiao997f30b013e6
diff --git a/frontend/src/store/modules/database.ts b/frontend/src/store/modules/database.ts
index c128ec6413..ac51c33e10 100644
--- a/frontend/src/store/modules/database.ts
+++ b/frontend/src/store/modules/database.ts
@@ -435,7 +435,7 @@ const mutations = {
listByProject.push(database);
}
} else {
- state.databaseListByProjectId.set(database.instance.id, [database]);
+ state.databaseListByProjectId.set(database.project.id, [database]);
}
}
}