Skip to content

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

Add some comments to principal.ts

Tianzhou Chen54b820847c7b
diff --git a/frontend/src/store/modules/principal.ts b/frontend/src/store/modules/principal.ts
index 7379a16790..9633fef9d8 100644
--- a/frontend/src/store/modules/principal.ts
+++ b/frontend/src/store/modules/principal.ts
@@ -34,11 +34,14 @@ const getters = {
email: "",
};
}
+
for (const principal of state.principalList) {
if (principal.id == principalId) {
return principal;
}
}
+
+ // Return id as the name if no matching is found.
return {
id: principalId,
name: principalId,