Skip to content

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

feat: hide labels that do not belong to this project on the tenant project (#3179)

Liu Ji706610f18050
diff --git a/frontend/src/components/TenantDatabaseTable/DatabaseMatrix.vue b/frontend/src/components/TenantDatabaseTable/DatabaseMatrix.vue
index 542312a40c..f18281abc3 100644
--- a/frontend/src/components/TenantDatabaseTable/DatabaseMatrix.vue
+++ b/frontend/src/components/TenantDatabaseTable/DatabaseMatrix.vue
@@ -154,13 +154,15 @@ export default defineComponent({
return [];
}
const dict = groupBy(props.databaseList, (db) => getLabelValue(db, key));
- return yAxisValueList.value.map((labelValue) => {
- const databaseList = dict[labelValue] || [];
- return {
- labelValue,
- databaseList,
- };
- });
+ return yAxisValueList.value
+ .map((labelValue) => {
+ const databaseList = dict[labelValue] || [];
+ return {
+ labelValue,
+ databaseList,
+ };
+ })
+ .filter((group) => group.databaseList.length > 0);
});
// then, group each row by `xAxisLabel` into some columns