Skip to content

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

Remove no-longer used adminDataSourceByInstanceId

天舟919f01010df4
diff --git a/frontend/src/store/modules/dataSource.ts b/frontend/src/store/modules/dataSource.ts
index 004b8328c0..54d199b3a8 100644
--- a/frontend/src/store/modules/dataSource.ts
+++ b/frontend/src/store/modules/dataSource.ts
@@ -52,20 +52,6 @@ const state: () => DataSourceState = () => ({
});
const getters = {
- adminDataSourceByInstanceId: (state: DataSourceState) => (
- instanceId: InstanceId
- ): DataSource | undefined => {
- const list = state.dataSourceListByInstanceId.get(instanceId);
- if (list) {
- for (const item of list) {
- if (item.type == "RW") {
- return item;
- }
- }
- }
- return undefined;
- },
-
dataSourceListByInstanceId: (state: DataSourceState) => (
instanceId: InstanceId
): DataSource[] => {