Skip to content

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

Asssign role to the principal when fetching the workspace member info

天舟e9ae91202585
diff --git a/frontend/src/store/modules/member.ts b/frontend/src/store/modules/member.ts
index 4d25148ff9..c6096ab036 100644
--- a/frontend/src/store/modules/member.ts
+++ b/frontend/src/store/modules/member.ts
@@ -11,6 +11,7 @@ import {
empty,
EMPTY_ID,
Principal,
+ RoleType,
} from "../../types";
function convert(
@@ -21,6 +22,7 @@ function convert(
const creator = member.attributes.creator as Principal;
const updater = member.attributes.updater as Principal;
const principal = member.attributes.principal as Principal;
+ principal.role = member.attributes.role as RoleType;
return {
...(member.attributes as Omit<